CubbyFlow::Triangle3::Builder Class Referencefinal

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

#include <Core/Geometry/Triangle3.hpp>

Inheritance diagram for CubbyFlow::Triangle3::Builder:
CubbyFlow::SurfaceBuilderBase< N, DerivedBuilder >

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::SurfaceBuilderBase< N, DerivedBuilder >
DerivedBuilder & WithIsNormalFlipped (bool isNormalFlipped)
 Returns builder with flipped normal flag. More...
 
DerivedBuilder & WithTranslation (const Vector< double, N > &translation)
 Returns builder with translation. More...
 
DerivedBuilder & WithOrientation (const Orientation< N > &orientation)
 Returns builder with orientation. More...
 
DerivedBuilder & WithTransform (const Transform< N > &transform)
 Returns builder with transform. More...
 

Additional Inherited Members

- Protected Attributes inherited from CubbyFlow::SurfaceBuilderBase< N, DerivedBuilder >
bool m_isNormalFlipped = false
 
Transform< N > 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: