Public Member Functions | Private Member Functions | Private Attributes | List of all members
gte::RevolutionMesh< Real > Class Template Reference

#include <GteRevolutionMesh.h>

Inheritance diagram for gte::RevolutionMesh< Real >:
Inheritance graph
[legend]

Public Member Functions

std::shared_ptr< ParametricCurve< 2, Real > > const & GetCurve () const
 
bool IsSampleByArcLength () const
 
 RevolutionMesh (MeshDescription const &description, std::shared_ptr< ParametricCurve< 2, Real >> const &curve, bool sampleByArcLength=false)
 
- Public Member Functions inherited from gte::Mesh< Real >
MeshDescription const & GetDescription () const
 
 Mesh (MeshDescription const &description, std::vector< MeshTopology > const &validTopologies)
 
 Mesh (Mesh const &)=delete
 
Meshoperator= (Mesh const &)=delete
 
void Update ()
 
virtual ~Mesh ()
 

Private Member Functions

void CreateSampler ()
 
void InitializeTCoords ()
 
void UpdateCylinderPositions ()
 
void UpdateDiskPositions ()
 
virtual void UpdatePositions () override
 
void UpdateSpherePositions ()
 
void UpdateTorusPositions ()
 

Private Attributes

std::vector< Real > mCosAngle
 
std::shared_ptr< ParametricCurve< 2, Real > > mCurve
 
std::vector< Vector2< Real > > mDefaultTCoords
 
bool mSampleByArcLength
 
std::vector< Vector3< Real > > mSamples
 
std::vector< Real > mSinAngle
 
std::function< Real(unsigned int)> mTSampler
 

Additional Inherited Members

- Protected Member Functions inherited from gte::Mesh< Real >
Vector3< Real > & Bitangent (uint32_t i)
 
void ComputeIndices ()
 
Vector3< Real > & DPDU (uint32_t i)
 
Vector3< Real > & DPDV (uint32_t i)
 
Vector3< Real > & Normal (uint32_t i)
 
Vector3< Real > & Position (uint32_t i)
 
Vector3< Real > & Tangent (uint32_t i)
 
Vector2< Real > & TCoord (uint32_t i)
 
virtual void UpdateFrame ()
 
virtual void UpdateNormals ()
 
- Protected Attributes inherited from gte::Mesh< Real >
Vector3< Real > * mBitangents
 
size_t mBitangentStride
 
MeshDescription mDescription
 
Vector3< Real > * mDPDUs
 
size_t mDPDUStride
 
Vector3< Real > * mDPDVs
 
size_t mDPDVStride
 
std::vector< Matrix< 3, 2, Real > > mDTU
 
Vector3< Real > * mNormals
 
size_t mNormalStride
 
Vector3< Real > * mPositions
 
size_t mPositionStride
 
Vector3< Real > * mTangents
 
size_t mTangentStride
 
Vector2< Real > * mTCoords
 
size_t mTCoordStride
 
std::vector< Matrix< 2, 2, Real > > mUTU
 

Detailed Description

template<typename Real>
class gte::RevolutionMesh< Real >

Definition at line 19 of file GteRevolutionMesh.h.

Constructor & Destructor Documentation

template<typename Real >
gte::RevolutionMesh< Real >::RevolutionMesh ( MeshDescription const &  description,
std::shared_ptr< ParametricCurve< 2, Real >> const &  curve,
bool  sampleByArcLength = false 
)

Definition at line 66 of file GteRevolutionMesh.h.

Member Function Documentation

template<typename Real >
void gte::RevolutionMesh< Real >::CreateSampler ( )
private

Definition at line 150 of file GteRevolutionMesh.h.

template<typename Real >
std::shared_ptr< ParametricCurve< 2, Real > > const & gte::RevolutionMesh< Real >::GetCurve ( ) const
inline

Definition at line 138 of file GteRevolutionMesh.h.

template<typename Real >
void gte::RevolutionMesh< Real >::InitializeTCoords ( )
private

Definition at line 186 of file GteRevolutionMesh.h.

template<typename Real >
bool gte::RevolutionMesh< Real >::IsSampleByArcLength ( ) const
inline

Definition at line 144 of file GteRevolutionMesh.h.

template<typename Real >
void gte::RevolutionMesh< Real >::UpdateCylinderPositions ( )
private

Definition at line 291 of file GteRevolutionMesh.h.

template<typename Real >
void gte::RevolutionMesh< Real >::UpdateDiskPositions ( )
private

Definition at line 317 of file GteRevolutionMesh.h.

template<typename Real >
void gte::RevolutionMesh< Real >::UpdatePositions ( )
overrideprivatevirtual

Reimplemented from gte::Mesh< Real >.

Definition at line 259 of file GteRevolutionMesh.h.

template<typename Real >
void gte::RevolutionMesh< Real >::UpdateSpherePositions ( )
private

Definition at line 332 of file GteRevolutionMesh.h.

template<typename Real >
void gte::RevolutionMesh< Real >::UpdateTorusPositions ( )
private

Definition at line 304 of file GteRevolutionMesh.h.

Member Data Documentation

template<typename Real >
std::vector<Real> gte::RevolutionMesh< Real >::mCosAngle
private

Definition at line 55 of file GteRevolutionMesh.h.

template<typename Real >
std::shared_ptr<ParametricCurve<2, Real> > gte::RevolutionMesh< Real >::mCurve
private

Definition at line 53 of file GteRevolutionMesh.h.

template<typename Real >
std::vector<Vector2<Real> > gte::RevolutionMesh< Real >::mDefaultTCoords
private

Definition at line 61 of file GteRevolutionMesh.h.

template<typename Real >
bool gte::RevolutionMesh< Real >::mSampleByArcLength
private

Definition at line 54 of file GteRevolutionMesh.h.

template<typename Real >
std::vector<Vector3<Real> > gte::RevolutionMesh< Real >::mSamples
private

Definition at line 57 of file GteRevolutionMesh.h.

template<typename Real >
std::vector<Real> gte::RevolutionMesh< Real >::mSinAngle
private

Definition at line 55 of file GteRevolutionMesh.h.

template<typename Real >
std::function<Real(unsigned int)> gte::RevolutionMesh< Real >::mTSampler
private

Definition at line 56 of file GteRevolutionMesh.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06