Module geom

Module geom 

Source
Expand description

Basic geometric primitives.

Re-exports§

pub use mesh::Mesh;

Modules§

mesh
Triangle meshes.

Structs§

Edge
A line segment between two vertices.
Plane
Plane, defined by the four parameters of the plane equation.
Polygon
A closed curve composed of a chain of line segments.
Polyline
A curve composed of a chain of line segments.
Ray
A ray, or a half line, composed of an initial point and a direction vector.
Tri
Triangle, defined by three vertices.
Vertex
Vertex with a position and arbitrary other attributes.

Enums§

Winding
Polygon winding order.

Functions§

tri
Creates a Tri with the given vertices.
vertex
Creates a Vertex with the give position and attribute values.

Type Aliases§

Normal2
A surface normal in 2D.
Normal3
A surface normal in 3D.
Plane3
Plane embedded in 3D space, splitting the space into two half-spaces.
Vertex2
Two-dimensional vertex type.
Vertex3
Three-dimensional vertex type.