BinaryTopology
Classes
- BinaryTopology
Heavily influenced by blender's internal mesh structure
Constants
- FLOAT_32_SIZE :
number
Byte size of FLOAT_32
- UINT_32_SIZE :
number
Byte size of UINT_32
- NULL_POINTER :
number
BinaryTopology
Heavily influenced by blender's internal mesh structure
Kind: global class
See: https://github.com/blender/blender/blob/master/source/blender/bmesh/bmesh_class.h
- BinaryTopology
- .byteSize ⇒
number
- .edges ⇒
BinaryElementPool
- .loops ⇒
BinaryElementPool
- .clear()
- .vertex_read_coordinate(result, result_offset, id)
- .vertex_write_coordinate(id, value, value_offset)
- .vertex_read_normal(result, result_offset, id)
- .vertex_write_normal(id, value, value_offset)
- .vertex_read_edge(id) ⇒
number
- .vertex_write_edge(edge_id, id)
- .edge_read_vertex1(id) ⇒
number
- .edge_write_vertex1(value, id)
- .edge_read_vertex2(id) ⇒
number
- .edge_write_vertex2(value, id)
- .edge_read_loop(id) ⇒
number
- .edge_write_loop(value, id)
- .edge_read_v1_disk_next(id) ⇒
number
- .edge_write_v1_disk_next(value, id)
- .edge_read_v1_disk_prev(id) ⇒
number
- .edge_write_v1_disk_prev(value, id)
- .edge_read_v2_disk_next(id) ⇒
number
- .edge_write_v2_disk_next(value, id)
- .edge_read_v2_disk_prev(id) ⇒
number
- .edge_write_v2_disk_prev(value, id)
- .loop_initialize(id)
- .loop_read_vertex(id) ⇒
number
- .loop_write_vertex(value, id)
- .loop_read_edge(id) ⇒
number
- .loop_write_edge(value, id)
- .loop_read_face(id) ⇒
number
- .loop_write_face(value, id)
- .loop_read_radial_next(id) ⇒
number
- .loop_write_radial_next(value, id)
- .loop_read_radial_prev(id) ⇒
number
- .loop_write_radial_prev(value, id)
- .loop_read_next(id) ⇒
number
- .loop_write_next(value, id)
- .loop_read_prev(id) ⇒
number
- .loop_write_prev(value, id)
- .face_read_loop(id) ⇒
number
- .face_write_loop(value, id)
- .byteSize ⇒
binaryTopology.byteSize ⇒ number
Total (approximate) size of this structure in memory, in bytes
Kind: instance property of BinaryTopology
binaryTopology.edges ⇒ BinaryElementPool
Edges are shared among faces, edges point to 2 unordered vertices
Kind: instance property of BinaryTopology
binaryTopology.loops ⇒ BinaryElementPool
Loops are corners of faces, a single vertex can be associated with many loops, one per connected face
Kind: instance property of BinaryTopology
binaryTopology.clear()
Clear the topology, removed all data
Kind: instance method of BinaryTopology
binaryTopology.vertex_read_coordinate(result, result_offset, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
result | Array.<number> | ArrayLike.<number> | Float32Array | |
result_offset | number | |
id | number | vertex ID |
binaryTopology.vertex_write_coordinate(id, value, value_offset)
Kind: instance method of BinaryTopology
Param | Type |
---|---|
id | number |
value | Array.<number> |
value_offset | number |
binaryTopology.vertex_read_normal(result, result_offset, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
result | Array.<number> | ArrayLike.<number> | Float32Array | |
result_offset | number | |
id | number | vertex ID |
binaryTopology.vertex_write_normal(id, value, value_offset)
Kind: instance method of BinaryTopology
Param | Type |
---|---|
id | number |
value | Array.<number> |
value_offset | number |
binaryTopology.vertex_read_edge(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type |
---|---|
id | number |
binaryTopology.vertex_write_edge(edge_id, id)
Kind: instance method of BinaryTopology
Param | Type |
---|---|
edge_id | number |
id | number |
binaryTopology.edge_read_vertex1(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | edge ID |
binaryTopology.edge_write_vertex1(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | edge ID |
binaryTopology.edge_read_vertex2(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | edge ID |
binaryTopology.edge_write_vertex2(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | edge ID |
binaryTopology.edge_read_loop(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | edge ID |
binaryTopology.edge_write_loop(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | edge ID |
binaryTopology.edge_read_v1_disk_next(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | edge ID |
binaryTopology.edge_write_v1_disk_next(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | edge ID |
binaryTopology.edge_read_v1_disk_prev(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | edge ID |
binaryTopology.edge_write_v1_disk_prev(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | edge ID |
binaryTopology.edge_read_v2_disk_next(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | edge ID |
binaryTopology.edge_write_v2_disk_next(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | edge ID |
binaryTopology.edge_read_v2_disk_prev(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | edge ID |
binaryTopology.edge_write_v2_disk_prev(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | edge ID |
binaryTopology.loop_initialize(id)
Put loop into valid initial state, set all pointers to NULL
Kind: instance method of BinaryTopology
Param | Type |
---|---|
id | number |
binaryTopology.loop_read_vertex(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | loop ID |
binaryTopology.loop_write_vertex(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | loop ID |
binaryTopology.loop_read_edge(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | loop ID |
binaryTopology.loop_write_edge(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | loop ID |
binaryTopology.loop_read_face(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | loop ID |
binaryTopology.loop_write_face(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | loop ID |
binaryTopology.loop_read_radial_next(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | loop ID |
binaryTopology.loop_write_radial_next(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | loop ID |
binaryTopology.loop_read_radial_prev(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | loop ID |
binaryTopology.loop_write_radial_prev(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | loop ID |
binaryTopology.loop_read_next(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | loop ID |
binaryTopology.loop_write_next(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | loop ID |
binaryTopology.loop_read_prev(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | loop ID |
binaryTopology.loop_write_prev(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | loop ID |
binaryTopology.face_read_loop(id) ⇒ number
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
id | number | face ID |
binaryTopology.face_write_loop(value, id)
Kind: instance method of BinaryTopology
Param | Type | Description |
---|---|---|
value | number | |
id | number | face ID |
FLOAT_32_SIZE : number
Byte size of FLOAT_32
Kind: global constant
Read only: true
UINT_32_SIZE : number
Byte size of UINT_32
Kind: global constant
Read only: true
NULL_POINTER : number
Kind: global constant
Read only: true