class

Mittsu::BufferGeometry

Inherits Reference < Object

Constructors

Instance methods

[](key)
Source
[]=(key, value)
Source
add_draw_call(start, count, index_offset = 0)
Source
apply_matrix(matrix)
Source
attributes
Source
bounding_box
Source
bounding_sphere
Source
center
Source
clone
Source
compute_bounding_box
Source
compute_bounding_sphere
Source
compute_offsets(size = 65535)

Compute the draw offset for large models by chunking the index buffer into chunks of 65k addressable vertices. This method will effectively rewrite the index buffer and remap all attributes to match the new indices. WARNING: This method will also expand the vertex count to prevent sprawled triangles across draw offsets. size - Defaults to 65535, but allows for larger or smaller chunks.

Source
compute_tangents
Source
compute_vertex_normals
Source
dispose
Source
draw_calls
Source
from_geometry(geometry, settings = {} of Symbol => Bool)
Source
keys
Source
merge(geometry, offset = 0)
Source
name
Source
normalize_normals
Source
reorder_buffers(index_buffer, index_map, vertex_count)

reoderBuffers: Reorder attributes based on a new indexBuffer and indexMap. indexBuffer - Uint16Array of the new ordered indices. indexMap - Int32Array where the position is the new vertex ID and the value the old vertex ID for each vertex. vertexCount - Amount of total vertices considered in this reordering (in case you want to grow the vertice stack).

Source
set_array2(array, i2, a, b = a, c = b)
Source
set_array3(array, i3, a, b = a, c = b)
Source
to_json
Source
type
Source
uuid
Source

Nested types