SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::PointCloudColliderParams Struct Reference

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.

Detailed Description

Geometric and logical properties of a point-cloud collider.

See also
RodActorParams::pointCloudCollider, experimental::ShellActorParams::pointCloudCollider

Definition at line 232 of file mochi_structs.h.

Member Function Documentation

◆ operator==()

bool superdex::PointCloudColliderParams::operator== ( PointCloudColliderParams const & ) const
default

Member Data Documentation

◆ colliderSegmentElementType

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.

◆ colliderTriangleElementType

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.

◆ radius

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).

Note
Must be finite and strictly positive. Its sum with the effective contact threshold in ContactParams, including ContactParams::penaltyThresholdExtraPadding, must also be finite and strictly positive.
This value also serves as the length scale for dimensional correction of the contact penalty coefficient on the collider side. The effective penalty stiffness is scaled by pow(radius, -integralDim), where integralDim is the dimension of the collider-side contact integral.

Definition at line 233 of file mochi_structs.h.

◆ selfContact

bool superdex::PointCloudColliderParams::selfContact = false

Whether to enable self-contact for this actor.

Note
Disabled by default because it may degrade performance in scenarios where it isn't needed. Has no effect if the actor's colliderType is set to ColliderType::None.

Definition at line 239 of file mochi_structs.h.

◆ selfContactExclusionRatio

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.

Note
Must be > 1 when selfContact is enabled.

Definition at line 235 of file mochi_structs.h.

◆ spatialHashLoadFactor

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.


The documentation for this struct was generated from the following files: