PeriDyno 1.0.0
Loading...
Searching...
No Matches
Distance3D.inl File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dyno
 This is an implementation of AdditiveCCD based on peridyno.
 

Functions

template<typename Real, typename Coord, DeviceType deviceType, typename IndexType>
DYN_FUNC bool dyno::calculateSignedDistance2TriangleSet (ProjectedPoint3D< Real > &p3d, Coord point, Array< Coord, deviceType > &vertices, Array< TopologyModule::Triangle, deviceType > &indices, List< IndexType > &list, Real dHat=0)
 Calculate the signed distance from a point to a triangular mesh.
 
template<typename Real, typename Coord, DeviceType deviceType, typename IndexType>
DYN_FUNC bool dyno::calculateDistance2TriangleSet (ProjectedPoint3D< Real > &p3d, Coord point, Array< Coord, deviceType > &vertices, Array< TopologyModule::Triangle, deviceType > &indices, List< IndexType > &list, Real dHat=0)
 Calculate the distance from a point to a triangular mesh.
 
template<typename Coord, DeviceType deviceType, typename IndexType>
DYN_FUNC void dyno::SO_ComputeObjectAndNormal (Coord &pobject, Coord &pnormal, Array< Coord, deviceType > &surf_points, Array< TopologyModule::Edge, deviceType > &edge, Array< TopologyModule::Triangle, deviceType > &surf_triangles, Array< TopologyModule::Tri2Edg, deviceType > &t2e, Array< Coord, deviceType > &edgeN, Array< Coord, deviceType > &vertexN, Coord ppos, IndexType surf_id)
 
template<typename Real, typename Coord, DeviceType deviceType, typename IndexType>
DYN_FUNC bool dyno::calculateSignedDistance2TriangleSetFromNormal (ProjectedPoint3D< Real > &p3d, Coord point, Array< Coord, deviceType > &vertices, Array< TopologyModule::Edge, deviceType > &edges, Array< TopologyModule::Triangle, deviceType > &triangles, Array< TopologyModule::Tri2Edg, deviceType > &t2e, Array< Coord, deviceType > &edgeNormal, Array< Coord, deviceType > &vertexNormal, List< IndexType > &list, Real dHat=0)