Blender V4.3
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.
 
CubeProjection cubeProj [NUM_AXES]
 Projections of the cube vertices.
 

Detailed Description

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

Definition at line 71 of file Projections.h.

Constructor & Destructor Documentation

◆ CubeTriangleIsect() [1/3]

CubeTriangleIsect::CubeTriangleIsect ( )
inline

Definition at line 80 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 221 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 287 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 276 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 77 of file Projections.h.

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

◆ inherit

TriangleProjection* CubeTriangleIsect::inherit

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