Module geometry

Module geometry 

Source
Expand description

A collection of geometries implementing the Geometry trait.

A geometry together with a material can be rendered directly, or combined into an object (see Gm) that can be used in a render call, for example RenderTarget::render.

Structs§

BoundingBox
A bounding box geometry used for visualising an AxisAlignedBoundingBox.
Circle
A circle 2D geometry which can be rendered using a camera created by Camera::new_2d.
CpuMesh
A CPU-side version of a triangle mesh.
InstancedMesh
Similar to Mesh, except it is possible to render many instances of the same mesh efficiently.
Instances
Defines the attributes for the instances of the model defined in InstancedMesh or InstancedModel.
KeyFrameAnimation
A set of key frames and transformations associated with a specific animation for a specific Primitive.
KeyFrames
Contains a set of key frames for rotations, translations, scales and morph weights.
Line
A rectangle 2D geometry which can be rendered using a camera created by Camera::new_2d.
Mesh
A triangle mesh Geometry.
ParticleSystem
Particle system that can be used to simulate effects such as fireworks, fire, smoke or water particles.
Particles
Used for defining the attributes for each particle in a ParticleSystem, for example its starting position and velocity.
PointCloud
Represents a set of points in 3D space, usually created with a scanner.
Rectangle
A rectangle 2D geometry which can be rendered using a camera created by Camera::new_2d.
Sprites
A set of sprites, ie. a set of quads that orients itself towards the camera.

Enums§

CpuGeometry
A CPU-side version of a geometry.
IndexBuffer
The index buffer used to determine the three vertices for each triangle in a mesh. A triangle is defined by three consequitive indices in the index buffer. Each index points to a position in the vertex buffers.
Indices
An array of indices. Supports different data types.
Positions
An array of positions. Supports f32 and f64 data types.

Traits§

Geometry
Represents a 3D geometry that, together with a material, can be rendered using Geometry::render_with_material. Alternatively, a geometry and a material can be combined in a Gm, thereby creating an Object which can be used in a render call, for example RenderTarget::render.