CubbyFlow::Triangle3::Builder Class Referencefinal

Front-end to create Triangle3 objects step by step. More...

#include <Core/Geometry/Triangle3.h>

Inheritance diagram for CubbyFlow::Triangle3::Builder:
CubbyFlow::SurfaceBuilderBase3< Triangle3::Builder >

Public Member Functions

BuilderWithPoints (const std::array< Vector3D, 3 > &points)
 Returns builder with points. More...
 
BuilderWithNormals (const std::array< Vector3D, 3 > &normals)
 Returns builder with normals. More...
 
BuilderWithUVs (const std::array< Vector2D, 3 > &uvs)
 Returns builder with uvs. More...
 
Triangle3 Build () const
 Builds Triangle3. More...
 
Triangle3Ptr MakeShared () const
 Builds shared pointer of Triangle3 instance. More...
 
- Public Member Functions inherited from CubbyFlow::SurfaceBuilderBase3< Triangle3::Builder >
Triangle3::BuilderWithIsNormalFlipped (bool isNormalFlipped)
 Returns builder with flipped normal flag. More...
 
Triangle3::BuilderWithTranslation (const Vector3D &translation)
 Returns builder with translation. More...
 
Triangle3::BuilderWithOrientation (const QuaternionD &orientation)
 Returns builder with orientation. More...
 
Triangle3::BuilderWithTransform (const Transform3 &transform)
 Returns builder with transform. More...
 

Additional Inherited Members

- Protected Attributes inherited from CubbyFlow::SurfaceBuilderBase3< Triangle3::Builder >
bool m_isNormalFlipped
 
Transform3 m_transform
 

Detailed Description

Front-end to create Triangle3 objects step by step.

Member Function Documentation

◆ Build()

Triangle3 CubbyFlow::Triangle3::Builder::Build ( ) const

Builds Triangle3.

◆ MakeShared()

Triangle3Ptr CubbyFlow::Triangle3::Builder::MakeShared ( ) const

Builds shared pointer of Triangle3 instance.

◆ WithNormals()

Builder& CubbyFlow::Triangle3::Builder::WithNormals ( const std::array< Vector3D, 3 > &  normals)

Returns builder with normals.

◆ WithPoints()

Builder& CubbyFlow::Triangle3::Builder::WithPoints ( const std::array< Vector3D, 3 > &  points)

Returns builder with points.

◆ WithUVs()

Builder& CubbyFlow::Triangle3::Builder::WithUVs ( const std::array< Vector2D, 3 > &  uvs)

Returns builder with uvs.


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