|
SuperDex Physics C++ API
|
Geometric and logical properties of a point-cloud collider. More...
#include <mochi_structs.h>
Public Member Functions | |
| bool | operator== (PointCloudColliderParams const &) const =default |
Public Attributes | |
| std::optional< ActorSegmentElementType > | colliderSegmentElementType = std::nullopt |
| Segment element type for collider discretization on a curve. | |
| std::optional< ActorBoundaryElementType > | colliderTriangleElementType = std::nullopt |
| Triangle element type for collider discretization on a surface. | |
| real | radius = 0.01_r |
| Range of interaction of the contact penalty potential evaluated between pairs of points. | |
| bool | selfContact = false |
| Whether to enable self-contact for this actor. | |
| real | selfContactExclusionRatio = 1.5_r |
| Contact samples whose reference-configuration positions are within a radius of (radius * selfContactExclusionRatio) + (additional padding) of a node are excluded from self-contact force computation for that node, where "additional padding" refers to any extra padding associated with the contact penalty formulation. | |
| real | spatialHashLoadFactor = 0.0625_r |
| Load factor for the spatial hash table used in collision detection. | |
Geometric and logical properties of a point-cloud collider.
Definition at line 232 of file mochi_structs.h.
|
default |
| std::optional<ActorSegmentElementType> superdex::PointCloudColliderParams::colliderSegmentElementType = std::nullopt |
Segment element type for collider discretization on a curve.
When unset, uses nodal collider placement. When set, uses quadrature-based placement with the specified segment element type. Only used for curve collider geometries (e.g., rods).
Definition at line 243 of file mochi_structs.h.
| std::optional<ActorBoundaryElementType> superdex::PointCloudColliderParams::colliderTriangleElementType = std::nullopt |
Triangle element type for collider discretization on a surface.
When unset, uses nodal collider placement (one collider point per mesh node, weighted by assembled nodal measure — cheapest option). When set, uses quadrature-based collider placement with the specified element type (denser and more accurate, but more expensive). Only used for surface collider geometries (e.g., shells).
Definition at line 241 of file mochi_structs.h.
| real superdex::PointCloudColliderParams::radius = 0.01_r |
Range of interaction of the contact penalty potential evaluated between pairs of points.
If the contact sample points (used as a quadrature for the contact penalty) are spaced significantly further apart than this, then nodes will be able to slip between them. This can be addressed without refining the mesh by increasing the number of contact samples per element, whose spacing scales roughly like (element size) / (quadrature points per element)^(1/d), where d is the parametric dimension of the collider geometry (d = 2 for surfaces such as shells, d = 1 for curves such as rods).
Definition at line 233 of file mochi_structs.h.
| bool superdex::PointCloudColliderParams::selfContact = false |
Whether to enable self-contact for this actor.
Definition at line 239 of file mochi_structs.h.
| real superdex::PointCloudColliderParams::selfContactExclusionRatio = 1.5_r |
Contact samples whose reference-configuration positions are within a radius of (radius * selfContactExclusionRatio) + (additional padding) of a node are excluded from self-contact force computation for that node, where "additional padding" refers to any extra padding associated with the contact penalty formulation.
Definition at line 235 of file mochi_structs.h.
| real superdex::PointCloudColliderParams::spatialHashLoadFactor = 0.0625_r |
Load factor for the spatial hash table used in collision detection.
Must be positive, and should be << 1.
Definition at line 237 of file mochi_structs.h.