Blender  V3.3
Public Member Functions | Public Attributes | List of all members
CubeTriangleIsect Class Reference

#include <Projections.h>

Public Member Functions

 CubeTriangleIsect ()
 
 CubeTriangleIsect (int64_t cube[2][3], int64_t trig[3][3], int64_t error, int triind)
 
 CubeTriangleIsect (CubeTriangleIsect *parent)
 
unsigned char getBoxMask ()
 
void shift (int off[3])
 
int isIntersecting () const
 
int isIntersectingPrimary (int edgeInd) const
 
float getIntersectionPrimary (int edgeInd) const
 

Public Attributes

TriangleProjectioninherit
 Inheritable portion. More...
 
CubeProjection cubeProj [NUM_AXES]
 Projections of the cube vertices. More...
 

Detailed Description

Class for projections of cube / triangle vertices on the separating axes

Definition at line 69 of file Projections.h.

Constructor & Destructor Documentation

◆ CubeTriangleIsect() [1/3]

CubeTriangleIsect::CubeTriangleIsect ( )
inline

Definition at line 78 of file Projections.h.

◆ CubeTriangleIsect() [2/3]

CubeTriangleIsect::CubeTriangleIsect ( int64_t  cube[2][3],
int64_t  tri[3][3],
int64_t  error,
int  triind 
)

◆ CubeTriangleIsect() [3/3]

CubeTriangleIsect::CubeTriangleIsect ( CubeTriangleIsect parent)

Construction from a parent CubeTriangleIsect object and the index of the children

Definition at line 215 of file Projections.cpp.

References cubeProj, CubeProjection::edges, inherit, CubeProjection::max, CubeProjection::min, NUM_AXES, and CubeProjection::origin.

Member Function Documentation

◆ getBoxMask()

unsigned char CubeTriangleIsect::getBoxMask ( )

◆ getIntersectionPrimary()

float CubeTriangleIsect::getIntersectionPrimary ( int  edgeInd) const

◆ isIntersecting()

int CubeTriangleIsect::isIntersecting ( ) const

Method to test intersection of the triangle and the cube

Definition at line 280 of file Projections.cpp.

References cubeProj, inherit, CubeProjection::max, CubeProjection::min, NUM_AXES, CubeProjection::origin, and TriangleProjection::tri_proj.

◆ isIntersectingPrimary()

int CubeTriangleIsect::isIntersectingPrimary ( int  edgeInd) const

◆ shift()

void CubeTriangleIsect::shift ( int  off[3])

Shifting a cube to a new origin

Definition at line 269 of file Projections.cpp.

References cubeProj, CubeProjection::edges, NUM_AXES, and CubeProjection::origin.

Member Data Documentation

◆ cubeProj

CubeProjection CubeTriangleIsect::cubeProj[NUM_AXES]

Projections of the cube vertices.

Definition at line 75 of file Projections.h.

Referenced by CubeTriangleIsect(), getBoxMask(), getIntersectionPrimary(), isIntersecting(), isIntersectingPrimary(), and shift().

◆ inherit

TriangleProjection* CubeTriangleIsect::inherit

Inheritable portion.

Definition at line 72 of file Projections.h.

Referenced by CubeTriangleIsect(), getBoxMask(), getIntersectionPrimary(), isIntersecting(), and isIntersectingPrimary().


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