Repetier-Host Plugin  2.0.0
RepetierHostExtender.geom.TopoTriangle Class Reference
Inheritance diagram for RepetierHostExtender.geom.TopoTriangle:

Public Member Functions

 TopoTriangle (TopoModel model, TopoVertex v1, TopoVertex v2, TopoVertex v3, double nx, double ny, double nz)
 
 TopoTriangle (TopoModel model, TopoVertex v1, TopoVertex v2, TopoVertex v3)
 
void Dispose ()
 
void Unlink (TopoModel model)
 
void ChangeId (int newId)
 
void FlipDirection ()
 
void RecomputeNormal ()
 
int VertexIndexFor (TopoVertex test)
 
double SignedVolume ()
 
double Area ()
 
TopoEdge EdgeWithVertices (TopoVertex v1, TopoVertex v2)
 
bool IsDegenerated ()
 
bool IsIsolated ()
 
bool CheckIfColinear ()
 Checks if all vertices are colinear preventing a normal computation. If point are coliniear the center vertex is moved in the direction of the edge to allow normal computations. More...
 
void FixColinear (TopoModel model)
 
int NumberOfSharedVertices (TopoTriangle tri)
 
bool SameNormalOrientation (TopoTriangle test)
 
bool IntersectsLine (RHVector3 lineStart, RHVector3 lineDirection, out double delta)
 
double DistanceToPlane (RHVector3 pos)
 
bool Intersects (TopoTriangle tri)
 
int LongestEdgeIndex ()
 
void LongestShortestEdgeLength (out int longestEdge, out double longestEdgeLength, out int shortestEdge, out double shortestEdgeLength)
 
double AngleEdgePoint (int edge, RHVector3 point)
 
bool SmoothAspectRatio (TopoModel model, double maxRatio)
 
override string ToString ()
 

Static Public Member Functions

static double TriangleQualityFromPositions (RHVector3 p1, RHVector3 p2, RHVector3 p3)
 

Public Attributes

TopoVertex [] vertices = new TopoVertex[3]
 
TopoEdge [] edges = new TopoEdge[3]
 
RHBoundingBox boundingBox = new RHBoundingBox()
 
RHVector3 normal
 
bool bad = false
 
bool hasIntersections = false
 
int algHelper
 
int shell = -1
 
int Id = -1
 

Static Public Attributes

static bool debugIntersections = false
 
static double epsilonZero = 1e-7
 
static double epsilonZeroMinus = -1e-7
 
static double epsilonOneMinus = 1 - 1e-7
 
static double epsilonOnePlus = 1 + 1e-7
 

Properties

RHVector3 Center [get]
 
double TriangleQuality [get]
 Returns triangle quality in terms of outer circle diameter/inner circle diameter > 2 More...
 

Member Function Documentation

◆ CheckIfColinear()

bool RepetierHostExtender.geom.TopoTriangle.CheckIfColinear ( )

Checks if all vertices are colinear preventing a normal computation. If point are coliniear the center vertex is moved in the direction of the edge to allow normal computations.

Returns

Property Documentation

◆ TriangleQuality

double RepetierHostExtender.geom.TopoTriangle.TriangleQuality
get

Returns triangle quality in terms of outer circle diameter/inner circle diameter > 2


The documentation for this class was generated from the following file:
About Us | Privacy Policy