SPHinXsys  alpha version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPH::TriangleMeshShape Class Reference

Inherits SPH::Shape.

Inherited by SPH::TriangleMeshShapeBrick, SPH::TriangleMeshShapeCylinder, SPH::TriangleMeshShapeSphere, and SPH::TriangleMeshShapeSTL.

Public Member Functions

 TriangleMeshShape (const std::string &shape_name, const SimTK::PolygonalMesh *mesh=nullptr)
 
virtual bool checkContain (const Vec3d &pnt, bool BOUNDARY_INCLUDED=true) override
 
virtual Vec3d findClosestPoint (const Vec3d &input_pnt) override
 
SimTK::ContactGeometry::TriangleMesh * getTriangleMesh ()
 
- Public Member Functions inherited from SPH::Shape
 Shape (const std::string &shape_name)
 
std::string getName ()
 
void setName (const std::string &name)
 
BoundingBox getBounds ()
 
virtual bool isValid ()
 
virtual bool checkContain (const Vecd &pnt, bool BOUNDARY_INCLUDED=true)=0
 
virtual Vecd findClosestPoint (const Vecd &input_pnt)=0
 
bool checkNotFar (const Vecd &input_pnt, Real threshold)
 
bool checkNearSurface (const Vecd &input_pnt, Real threshold)
 
Real findSignedDistance (const Vecd &input_pnt)
 
Vecd findNormalDirection (const Vecd &input_pnt)
 

Protected Member Functions

SimTK::ContactGeometry::TriangleMesh * generateTriangleMesh (const SimTK::PolygonalMesh &poly_mesh)
 
virtual BoundingBox findBounds () override
 

Protected Attributes

SimTK::ContactGeometry::TriangleMesh * triangle_mesh_
 
- Protected Attributes inherited from SPH::Shape
std::string name_
 
BoundingBox bounding_box_
 
bool is_bounds_found_
 

Member Function Documentation

◆ checkContain()

bool SPH::TriangleMeshShape::checkContain ( const Vec3d &  pnt,
bool  BOUNDARY_INCLUDED = true 
)
overridevirtual

go throught the neighbor faces.


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