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

◆ numPoints

◆ grid

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

◆ 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

◆ shapeRoot

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

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