Rasterfarm-SDK
Loading...
Searching...
No Matches
Physical::Boundary Class Referenceabstract

#include <physical.h>

Inheritance diagram for Physical::Boundary:
Physical::SurfaceAttributes Physical::BoundaryPrimitive< PRIMITIVE >

Public Member Functions

 Boundary (Node *pContext=nullptr, IntersectionFunction function=nullptr)
 
 Boundary (const SurfaceAttributes &surfaceAttributes, Node *pContext=nullptr, IntersectionFunction function=nullptr)
 
virtual ~Boundary ()
 
virtual bool inside (const Vertex3f &point, const Primitive3D::Sphere &sphere)=0
 
virtual float distance (const Vertex3f &point)=0
 
virtual Vertex3f closestPoint (const Primitive3D::Sphere &sphere)=0
 
virtual Vertex3f normal ()=0
 
- Public Member Functions inherited from Physical::SurfaceAttributes
 SurfaceAttributes ()
 
 SurfaceAttributes (float elasticityCoeff, float frictionCoeff, float faceWidth=0.0f)
 

Public Attributes

NodepContext
 
IntersectionFunction function
 
- Public Attributes inherited from Physical::SurfaceAttributes
float elasticityCoeff
 
float frictionCoeff
 
float width
 

Detailed Description

Describes some basic physical attributes of a planar-surface.

Constructor & Destructor Documentation

◆ Boundary() [1/2]

Physical::Boundary::Boundary ( Node * pContext = nullptr,
IntersectionFunction function = nullptr )

◆ Boundary() [2/2]

Physical::Boundary::Boundary ( const SurfaceAttributes & surfaceAttributes,
Node * pContext = nullptr,
IntersectionFunction function = nullptr )

◆ ~Boundary()

virtual Physical::Boundary::~Boundary ( )
inlinevirtual

Member Function Documentation

◆ closestPoint()

virtual Vertex3f Physical::Boundary::closestPoint ( const Primitive3D::Sphere & sphere)
pure virtual

◆ distance()

virtual float Physical::Boundary::distance ( const Vertex3f & point)
pure virtual

◆ inside()

virtual bool Physical::Boundary::inside ( const Vertex3f & point,
const Primitive3D::Sphere & sphere )
pure virtual
Returns
True if inside the boundary

Implemented in Physical::BoundaryPrimitive< PRIMITIVE >.

◆ normal()

virtual Vertex3f Physical::Boundary::normal ( )
pure virtual

Member Data Documentation

◆ function

IntersectionFunction Physical::Boundary::function

◆ pContext

Node* Physical::Boundary::pContext

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