Repetier-Host Plugin  0.95
RepetierHostExtender.geom.TopoTriangle Class Reference

List of all members.

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 Unlink (TopoModel model)
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.
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

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.

Member Function Documentation

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

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Properties