Rasterfarm-SDK
Loading...
Searching...
No Matches
Physical::BoundaryPrimitive< PRIMITIVE > Class Template Reference

#include <physical.h>

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

Public Member Functions

 BoundaryPrimitive (const PRIMITIVE &primitive, Node *pContext=nullptr, IntersectionFunction function=nullptr)
 
 BoundaryPrimitive (const PRIMITIVE &primitive, const SurfaceAttributes &attributes, Node *pContext=nullptr, IntersectionFunction function=nullptr)
 
virtual bool inside (const Vertex3f &point, const Primitive3D::Sphere &sphere)
 
virtual float distance (const Vertex3f &point)
 
virtual Vertex3f closestPoint (const Primitive3D::Sphere &sphere)
 
virtual Vertex3f normal ()
 
- Public Member Functions inherited from Physical::Boundary
 Boundary (Node *pContext=nullptr, IntersectionFunction function=nullptr)
 
 Boundary (const SurfaceAttributes &surfaceAttributes, Node *pContext=nullptr, IntersectionFunction function=nullptr)
 
virtual ~Boundary ()
 
- 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::Boundary
NodepContext
 
IntersectionFunction function
 
- Public Attributes inherited from Physical::SurfaceAttributes
float elasticityCoeff
 
float frictionCoeff
 
float width
 

Constructor & Destructor Documentation

◆ BoundaryPrimitive() [1/2]

template<typename PRIMITIVE >
Physical::BoundaryPrimitive< PRIMITIVE >::BoundaryPrimitive ( const PRIMITIVE & primitive,
Node * pContext = nullptr,
IntersectionFunction function = nullptr )

◆ BoundaryPrimitive() [2/2]

template<typename PRIMITIVE >
Physical::BoundaryPrimitive< PRIMITIVE >::BoundaryPrimitive ( const PRIMITIVE & primitive,
const SurfaceAttributes & attributes,
Node * pContext = nullptr,
IntersectionFunction function = nullptr )

Member Function Documentation

◆ closestPoint()

template<typename PRIMITIVE >
virtual Vertex3f Physical::BoundaryPrimitive< PRIMITIVE >::closestPoint ( const Primitive3D::Sphere & sphere)
virtual

Implements Physical::Boundary.

◆ distance()

template<typename PRIMITIVE >
virtual float Physical::BoundaryPrimitive< PRIMITIVE >::distance ( const Vertex3f & point)
virtual

Implements Physical::Boundary.

◆ inside()

template<typename PRIMITIVE >
virtual bool Physical::BoundaryPrimitive< PRIMITIVE >::inside ( const Vertex3f & point,
const Primitive3D::Sphere & sphere )
virtual
Returns
True if inside the boundary

Implements Physical::Boundary.

◆ normal()

template<typename PRIMITIVE >
virtual Vertex3f Physical::BoundaryPrimitive< PRIMITIVE >::normal ( )
virtual

Implements Physical::Boundary.

Member Data Documentation

◆ function

◆ pContext

template<typename PRIMITIVE >
Node* Physical::BoundaryPrimitive< PRIMITIVE >::pContext

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