InstancedBufferGeometry
Core.InstancedBufferGeometry exported from @manycore/aholo-viewer.
Hierarchy
- BufferGeometry
- InstancedBufferGeometry
Constructors
constructor
Returns InstancedBufferGeometry
Inherited from BufferGeometry.constructor
Properties
name
Inherited from BufferGeometry.name
is Buffer Geometry
Flag to indicate the type of this class. This value should not be changed by user.
Inherited from BufferGeometry.isBufferGeometry
parameters
This object is used to record all parameters which are set when instance is initialized. But, change the value of this object may not change the geometry directly.
Inherited from BufferGeometry.parameters
mesh BVH
Use BVH to accelerate rendering. This value usually dose not need you to change it, it is built by the engine automatically.
Inherited from BufferGeometry.meshBVH
_ indexnull
Allows for vertices to be re-used across multiple triangles; this is called using "indexed triangles".
and works much the same as it does in Geometry: each triangle is associated with the indices of three vertices.
This attribute therefore stores the index of each vertex for each triangular face.
If this attribute is not set, the renderer assumes that each three contiguous positions represent a single triangle.
This should be set by setIndex| setIndex() to avoid error.
Inherited from BufferGeometry._index
attributes
Core data of Geometry such as vertex positions, normals, UVs and color.
Remarks
See BufferAttribute for more details.
Inherited from BufferGeometry.attributes
draw Range{ start: 0, count: Infinity }
Determines which part of buffer will be rendered.
Inherited from BufferGeometry.drawRange
__ topology Mark
Inherited from BufferGeometry.__topologyMark
id
Inherited from BufferGeometry.id
is Instanced Buffer Geometry
Used to check type of this or extended instance. This value should not be changed by user.
type
The type of this instance.
Overrides BufferGeometry.type
Readonlyuser Data
Inherited from BufferGeometry.userData
_ uuid
Inherited from BufferGeometry._uuid
uuid
Inherited from BufferGeometry.uuid
_ listeners
Inherited from BufferGeometry._listeners
Accessors
index
- get index(): IndexBufferAttribute
Returns IndexBufferAttribute
Inherited from BufferGeometry.index
- set index(v: IndexBufferAttribute): void
Parameters
- v: IndexBufferAttribute
Returns void
Inherited from BufferGeometry.index
position
Returns BufferAttribute<TypedArray>
Inherited from BufferGeometry.position
uv
Returns BufferAttribute<TypedArray>
Inherited from BufferGeometry.uv
instanced Count
- get instancedCount(): number
Returns number
- set instancedCount(v: number): void
Parameters
- v: number
Returns void
business Tag
- get businessTag(): string
Returns string
Inherited from BufferGeometry.businessTag
- set businessTag(v: string): void
Parameters
- v: string
Returns void
Inherited from BufferGeometry.businessTag
Methods
get Group
get group at index
Parameters
- index: number
Returns BufferGroup | undefined
Inherited from BufferGeometry.getGroup
set Group
Split the data into different groups.
Parameters
- group: BufferGroup
- index: number
Returns void
Inherited from BufferGeometry.setGroup
set Groups
set entire groups
Parameters
- groups: BufferGroup[]
Returns this
Inherited from BufferGeometry.setGroups
push Group
add Group
Split geometry data to a new group.
Parameters
- start: number
- count: number
- materialIndex: number
Returns void
Inherited from BufferGeometry.addGroup
clear Groups
get Bounding Box
If boundingBox| boundingBox is null, it will be calculated a new one.
Returns Box3
Inherited from BufferGeometry.getBoundingBox
get Bounding Sphere
If boundingSphere| boundingSphere is null, it will be calculated a new one.
Returns Sphere
Inherited from BufferGeometry.getBoundingSphere
notify Shape Changed
Clear the bounding box and sphere and recalculate them later.
Returns void
Inherited from BufferGeometry.notifyShapeChanged
get Attribute Layout Key
Generate a hash key according to index| index and all attributes| attributes.
Returns string
Inherited from BufferGeometry.getAttributeLayoutKey
class Name
attribute Changed
Clean old data of engine and load new data in next update.
Returns void
Inherited from BufferGeometry.attributeChanged
get Buffer Geometry
get Line Buffer Geometry
Return current instance of this class.
Returns this
Inherited from BufferGeometry.getLineBufferGeometry
get Index
Return the instance of index| index.
Returns IndexBufferAttribute
Inherited from BufferGeometry.getIndex
on Attribute Update
Call this method to let engine refresh data of meshBVH.
Returns void
Inherited from BufferGeometry.onAttributeUpdate
set Index
Use this method to set new index| index for geometry.
Parameters
- index: TypedArray | number[] | IndexBufferAttribute
source data of the index.
Returns this
Inherited from BufferGeometry.setIndex
- index: TypedArray | number[] | IndexBufferAttribute
add Attribute
Parameters
- name: string
- attribute: BufferAttribute
Returns this
Inherited from BufferGeometry.addAttribute
set Attribute
Change the given attributes| attributes for geometry.
Parameters
- name: string
the name of data such as position, uv and normal.
- attribute: BufferAttribute
source data. see BufferAttribute for more details.
Returns this
Inherited from BufferGeometry.setAttribute
- name: string
add Or Set Attribute
Get specified attributes| attributes from geometry.
Parameters
- name: string
the name of target attributes.
- array: TypedArray
- itemSize: number
Returns void
Inherited from BufferGeometry.addOrSetAttribute
- name: string
get Attribute
Parameters
- name: string
Returns BufferAttribute<TypedArray> | undefined
Inherited from BufferGeometry.getAttribute
remove Attribute
Remove specified attributes| attributes from geometry.
Parameters
- name: string
the name of target attributes.
Returns this
Inherited from BufferGeometry.removeAttribute
- name: string
remove And Destroy Attribute
get Group By Vertex Index
Find the group which the vertex belong to.
Parameters
- index: number
Queried vertex index.
Returns { group: BufferGroup; groupIndex: number }
Inherited from BufferGeometry.getGroupByVertexIndex
- index: number
set Draw Range
Change the value of drawRange.
Parameters
- start: number
- count: number
Returns void
Inherited from BufferGeometry.setDrawRange
compute Bounding Box
Computes bounding box according to vertexes, updating boundingBox attribute. Bounding boxes aren't computed by default. They need to be explicitly computed, otherwise they are null.
Returns void
Inherited from BufferGeometry.computeBoundingBox
compute Bounding Sphere
Computes bounding sphere according to vertexes, updating boundingSphere attribute. Bounding spheres aren't computed by default. They need to be explicitly computed, otherwise they are null.
Returns void
Inherited from BufferGeometry.computeBoundingSphere
_ compute Groups
get UUID
UUID of this BufferGeometries instance. This gets automatically assigned, so this shouldn't be edited.
Returns string
Inherited from BufferGeometry.getUUID
serialize
Store the attributes of this class into string as serializing format.
Parameters
- ctx: Serializer
this parameter has not supported external Serializer yet. It may cause that this method can not be used directly.
Returns void
Inherited from BufferGeometry.serialize
- ctx: Serializer
deserialize
Parse the data for this class from string according to serializing format.
Parameters
- ctx: Deserializer
this parameter has not supported external Deserializer yet. It may cause that this method can not be used directly.
Returns void
Inherited from BufferGeometry.deserialize
- ctx: Deserializer
free GPU
destroy
Returns void
Inherited from BufferGeometry.destroy
destroy Attributes
Returns void
Inherited from BufferGeometry.destroyAttributes
free Attributes Gpu Resource
Returns void
Inherited from BufferGeometry.freeAttributesGpuResource
destroy All Resources Owned
Returns void
Inherited from BufferGeometry.destroyAllResourcesOwned
free All Gpu Resource Owned
Returns void
Inherited from BufferGeometry.freeAllGpuResourceOwned
force Cast Topology
Type Parameters
- R extends Topology
Returns BufferGeometry<R>
Inherited from BufferGeometry.forceCastTopology
notify Geometry Content Change
Returns void
Inherited from BufferGeometry.notifyGeometryContentChange
copy
Copy the data to this object from source. This method need override in derived classes to copy extended data.
Parameters
- source: InstancedBufferGeometry
the data source.
Returns this
Overrides BufferGeometry.copy
- source: InstancedBufferGeometry
clone
mark Business Tag
is Destroyed
Returns boolean
Inherited from BufferGeometry.isDestroyed
validate
Returns void
Inherited from BufferGeometry.validate
on
once
Only active the listener one times and then off it| it.
Type Parameters
- T
Returns void
Inherited from BufferGeometry.once
has
Checks if listener is added to an event type.
Type Parameters
- T
Returns boolean
Inherited from BufferGeometry.has
off
Removes a listener from listening list.
Type Parameters
- T
Returns void
Inherited from BufferGeometry.off
emit
Active the event and call the registered listener.
Parameters
- type: EventType<never>
Returns void
Inherited from BufferGeometry.emit
clear All Listeners
Removes all listeners from listening list.
Returns void
Inherited from BufferGeometry.clearAllListeners
The name of viewer, which could be empty.