peclet-dem 1.1.0
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
Loading...
Searching...
No Matches
peclet::dem::ShapeDesc Struct Reference

Portable mirror of ShapeDescriptor (analytic fields + a flat-array point shell). More...

#include <narrowphase.hpp>

Public Attributes

int type
 
F4 params
 
int shellOffset
 
int numPoints
 
peclet::core::geom::GridDesc< float > grid
 
const peclet::core::geom::ShapeNode< float > * nodes = nullptr
 
int nodeCount = 0
 
int shapeRoot = -1
 

Detailed Description

Portable mirror of ShapeDescriptor (analytic fields + a flat-array point shell).

For an imported grid SDF (type == SHAPE_GRID_SDF) the analytic params is unused except params.x, which carries the canonical bounding radius (used by the broad-phase splat / VTI export). The signed-distance samples live in the shared Particles::sdfGrid View at [gridOffset, gridOffset + nx*ny*nz), x-fastest (idx = x + y*nx + z*nx*ny), located at the regular lattice nodes q = gridOrigin + (x,y,z) / gridInvSpacing in canonical (unrotated, unit-scale) particle space. Analytic shapes leave these zero.

Definition at line 30 of file narrowphase.hpp.

Member Data Documentation

◆ type

◆ params

◆ shellOffset

int peclet::dem::ShapeDesc::shellOffset

◆ numPoints

int peclet::dem::ShapeDesc::numPoints

◆ grid

peclet::core::geom::GridDesc<float> peclet::dem::ShapeDesc::grid

Definition at line 40 of file narrowphase.hpp.

Referenced by peclet::dem::sampleGridSdf().

◆ nodes

const peclet::core::geom::ShapeNode<float>* peclet::dem::ShapeDesc::nodes = nullptr

Definition at line 45 of file narrowphase.hpp.

Referenced by peclet::dem::sdfEvalShape(), and peclet::dem::sdfGradShape().

◆ nodeCount

int peclet::dem::ShapeDesc::nodeCount = 0

Definition at line 46 of file narrowphase.hpp.

Referenced by peclet::dem::sdfEvalShape(), and peclet::dem::sdfGradShape().

◆ shapeRoot

int peclet::dem::ShapeDesc::shapeRoot = -1

Definition at line 47 of file narrowphase.hpp.

Referenced by peclet::dem::sdfEvalShape(), and peclet::dem::sdfGradShape().


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