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

Parameters for subsampling boundary integrals such as contact. More...

#include <mochi_structs.h>

Public Member Functions

bool operator== (BoundarySubsamplingParams const &) const =default

Public Attributes

BoundarySubsamplingStrategy strategy = BoundarySubsamplingStrategy::UniformProbability
 Strategy for determining which sample points to use.
real subsamplingDensity = 1_r
 Subsampling density in the range [0, 1].

Detailed Description

Parameters for subsampling boundary integrals such as contact.

Subsampling reduces the number of boundary sample points used for contact and other boundary integrals, which can improve performance at the cost of accuracy.

Definition at line 76 of file mochi_structs.h.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ strategy

BoundarySubsamplingStrategy superdex::BoundarySubsamplingParams::strategy = BoundarySubsamplingStrategy::UniformProbability

Strategy for determining which sample points to use.

Definition at line 79 of file mochi_structs.h.

◆ subsamplingDensity

real superdex::BoundarySubsamplingParams::subsamplingDensity = 1_r

Subsampling density in the range [0, 1].

Note
0 means no sample points are used. 1 means all sample points are used.

Definition at line 77 of file mochi_structs.h.


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