Module shape

Source
Expand description

Shapes supported by parry.

Structs§

AxisMask
The status of the cell of an heightfield.
Ball
A ball shape, also known as a sphere in 3D or a circle in 2D.
Capsule
A capsule shape, also known as a pill or capped cylinder.
CompositeShapeRef
A helper struct that implements scene queries on any composite shapes.
Compound
A compound shape with an aabb bounding volume.
ConvexPolygon
A 2D convex polygon.
Cuboid
A cuboid shape, also known as a box or rectangle.
HalfSpace
A half-space delimited by an infinite plane.
HeightField
A 2D heightfield with a generic storage buffer for its heights.
OctantPattern
Indicates the local shape of a voxel on each octant.
PackedFeatureId
A memory-efficient feature ID where the type and index are packed into a single u32.
PolygonalFeature
A polygonal feature representing the local polygonal approximation of a vertex, or face, of a convex shape.
Polyline
A polyline shape formed by connected line segments.
RoundShape
A shape with rounded borders.
Segment
A line segment shape.
SharedShape
A reference-counted, shareable geometric shape.
TopoFace
A face of a triangle-mesh’s half-edge topology.
TopoHalfEdge
A half-edge of a triangle-mesh’s half-edge topology.
TopoVertex
A vertex of a triangle-mesh’s half-edge topology.
TriMesh
A triangle mesh.
TriMeshConnectedComponents
The connected-components of a triangle mesh.
TriMeshFlags
Controls how a TriMesh should be loaded.
TriMeshTopology
The half-edge topology information of a triangle mesh.
Triangle
A triangle shape defined by three vertices.
TrianglePseudoNormals
The pseudo-normals of a triangle providing approximations of its feature’s normal cones.
VoxelData
Information associated to a voxel.
VoxelState
A description of the local neighborhood of a voxel.
Voxels
A shape made of axis-aligned, uniformly sized cubes (aka. voxels).
VoxelsChunkRef
A reference to a chunk of voxels within a Voxels shape.

Enums§

FeatureId
An identifier of a geometric feature (vertex, edge, or face) of a shape.
SegmentPointLocation
Describes where a point is located on a segment.
ShapeType
Enum representing the type of a shape.
TopologyError
Errors that occur when computing or validating triangle mesh topology.
TriMeshBuilderError
Errors that occur when creating a triangle mesh.
TriangleOrientation
Orientation of a triangle.
TrianglePointLocation
Description of the location of a point on a triangle.
TypedShape
Enum representing the shape with its actual type
VoxelType
Categorization of a voxel based on its neighbors.

Traits§

CompositeShape
Trait implemented by shapes composed of multiple simpler shapes.
PolygonalFeatureMap
Trait implemented by convex shapes with features with polyhedral approximations.
Shape
Trait implemented by shapes usable by Rapier.
SupportMap
Trait for convex shapes representable by a support mapping function.
TypedCompositeShape

Type Aliases§

HeightFieldCellStatus
Indicates if a cell of a heightfield is removed or not. Set this to false for a removed cell.
RoundConvexPolygon
A convex polygon dilated by a sphere (so it has round corners).
RoundCuboid
A cuboid dilated by a sphere (so it has round corners).
RoundTriangle
A triangle dilated by a sphere (so it has round corners).