Name | Description | |
---|---|---|
Utility Constructor |
The following tables list the members exposed by Utility.
Name | Description | |
---|---|---|
Utility Constructor |
Name | Description | |
---|---|---|
EPSILON | Constant, small positive value equal to 2.2204460492503131e-16. | |
HDLGRIDSPAN | Integer grid span. | |
LinearConversionFactors | Gets linear conversion factor between two units. | |
PI_2 | Constant, π / 2. | |
POS_MIN_DBL | Constant, minimum positive value equal to 2.2250738585072014e-308. | |
QUARTER_PI | Constant, π / 4. | |
SQRT_EPSILON | Constant, square root of EPSILON. | |
SQRT2 | Constant, square root of 2, truncated at 30 digits. | |
SQRT3 | Constant, square root of 3, truncated at 30 digits. | |
SQRT3_OVER_2 | Constant, square root of 3 divided by 2, truncated at 30 digits. | |
THREE_QUARTER_PI | Constant, π * 3 / 4. | |
TOL3 | Constant, 1e-3. | |
TOL6 | Constant, 1e-6. | |
TOL9 | Constant, 1e-9. | |
TWO_PI | Constant, π * 2. | |
ZERO_TOLERANCE | Constant, 1e-12. |
Name | Description | |
---|---|---|
Append | Appends the second array at the end of first one. | |
ArcTanProblem | See: http://hyperphysics.phy-astr.gsu.edu/hbase/ttrig.html | |
AreEqual | Overloaded. Checks if two generic lists contain the same elements. | |
AreEqual2D | Compares two 2D points in the given domain. | |
BoundingBox | Returns the bounding box of a collection of 3D points. | |
BoundingRect | Overloaded. Returns the bounding rectangle of a collection of 2D points. | |
BoundingRectOnPlane | Returns the bounding rectangle of a collection of 2D points by using a fixed plane orientation. | |
CheckDir<T> | ||
CircularNext<T> | Returns the next 'circular' node in the linked list. | |
CircularPrevious<T> | Returns the previous 'circular' node in the linked list. | |
CleanQuads | Cleans a quad list from duplicated vertices. | |
CleanTriangles | Overloaded. Cleans a triangles list from duplicated vertices. | |
ColorToDoubleArray | Converts a System.Drawing.Color to a double[4] with components in the [0,1] range. | |
ColorToFloatArray | Converts a System.Drawing.Color to a float[4] with components in the [0,1] range. | |
Compact | Removes orphan vertices. | |
CompactNormals | Removes orphan normals. | |
Compare | Overloaded. | |
CompareWithoutTolerance | ||
ComputeBoundingBox | Overloaded. Computes the bounding box of the given array of points. | |
ComputeBoundingRect | Computes the bounding box of the given array of points. | |
ComputeTolerance | Computes visual refinement tolerance. | |
DegToRad | Converts degrees to radians. | |
DoOverlap | Check if two bounding boxes overlap. | |
DoOverlap2D | Overloaded. Check if two bounding rectangles overlap. | |
DoOverlapOrTouch | Overloaded. Check if two bounding boxes overlap or touch. | |
DoOverlapOrTouch2D | Overloaded. Check if two bounding boxes overlap or touch. | |
DoubleArrayToColor | Converts a double[3] to System.Drawing.Color. | |
DoubleArrayToString | ||
DoubleParse | Converts the string representation of a number to its double-precision equivalent in a culture invariant way. | |
DoublesToPointArray2D | Convert a list of double values to a 2D point array. | |
DoublesToPointArray3D | Converts an array of doubles to a an array of 3D points. | |
DoublesToPointArray4D | Converts an array of doubles to a an array of 4D points (only the XYZ members are converted). | |
DoubleTryParse | Converts the string representation of a number to its double-precision equivalent in a culture invariant way. | |
EvaluateCurvature | Evaluates unit tangent and curvature from first and second derivatives. T = D1 / |D1| K = ( D2 - (D2 o T)*T )/( D1 o D1) | |
FindLoops | ||
FitCircle | Overloaded. Least squares circle fit given a set of 2D points. | |
FitLine | Overloaded. Linear fitting of 3D points using orthogonal regression. | |
FitPlane | Overloaded. Planar fitting of 3D points using orthogonal regression. | |
FixEndAngle | ||
FixRevAngle | ||
FloatArrayToColor | Converts a float[4] to System.Drawing.Color. | |
FloatParse | Converts the string representation of a number to its single-precision equivalent in a culture invariant way. | |
GetBoundingBoxCorners | ||
GetBoundingBoxTransformed | Transforms the eight corners of a world-aligned bounding box and returns the minimum and maximum corners. | |
GetCleanedAndConvertedEdges | ||
GetCleanedAndConvertedTriangles | ||
GetContourPlane | ||
GetConversionIndices | Overloaded. | |
GetCornersOnPlane | Computes a rect on the plane that encloses the eight projected bounding box corners. | |
GetCutPlane | ||
GetEdge | ||
GetEdgesWithoutDuplicates | Overloaded. Gets a list of edges without duplicates from a mesh of triangles. | |
GetLinearUnitsConversionFactor | Gets the scale factor to use for the conversion between linearUnitsTypes | |
GetMatrixForNormals | Gets the matrix needed for normals transformation. | |
GetMinMax | ||
GetOrientationTransformation | Gets the transformation to orient an entity built on the X-Axis on the given direction. | |
GetOuterIndex | Overloaded. Returns the outer loop index. | |
GetOuterIndexInternal<T> | ||
GetPlanarIntersectionProfile | ||
GetPlane | ||
GetPointsOnPlane | Gets the array of Point3D from a 2D profile. | |
GetProgress | Gets progress value from parallel tasks. | |
GetRandomColor | Computes a random color. | |
GetRotationAxisAndAngle | Returns the rotation axis and the angle to rotate from one vector to another. | |
GetSampling | Overloaded. | |
GetScalingLevel | Gets the custom scaling level. | |
GetSizeOnPlane | Gets 2D corners of the rectangle enclosing the projection of the 3D bounding box corners. | |
GetSkinFaces | ||
GetSliceVerticesAndNormals | Quad strip generation for Bar entity. Born for Bar entity, now used also for Fem Truss elements | |
GetSupportedLinearUnits | Converts linearUnitsType to | |
GetTrianglesPlane | Gets the first valid plane found from a collection of triangles. | |
GetUniqueEdges | ||
GetUniqueVertices | Overloaded. | |
GetXElement<T> | ||
HermiteSpline | Computes a point on the Hermite Spline. | |
HSLtoRGB | ||
HSVtoRGB | ||
InchesToMm | Converts Inches to Millimeters. | |
InitializeMinMax | ||
InsideOrCrossingFrustum | Checks whether the triangle is inside or crossing the frustum defined by the given planes. | |
InsideOrCrossingFrustumQuad | Checks whether the quad is inside or crossing the frustum defined by the given planes. | |
IntArrayToString | ||
Intersect3DLines | Traces two lines in 3D. x0(s) = p0 + s * t0 x1(t) = p1 + t * t1 | |
IntersectionBox | Computes the intersection rectangle between two axis aligned boxes. This function assumes that the two boxes overlap. | |
IntersectionRect | Computes the intersection rectangle between two axis aligned rectangles. This function assumes that the two rectangles overlap. | |
InvalidOGLPoint | Tells if the point has valid coordinates for the OpenGL flaot precision. | |
InvertMatrixd | Inverts a matrix. | |
IsClosedProfile<T> | Tells if a profile is closed, depending on a tolerance computed from its size. | |
IsImperial | Returns true if the specified unit is Inches, Feet or Miles. | |
IsInFrustum | Overloaded. Tells if a hypothetical sphere with the specified center and radius is inside the given frustum planes. | |
IsOrientedClockwise<T> | Detects polygon orientation (the points are always projected on XY plane). | |
IsPointInside | Checks if the point is inside the specified bounding box. | |
IsPointInsideOrCrossing | Tells if a point is inside the camera frustum. | |
IsPointInsideOrOntoBBox2D | Check if the Point3D is inside or onto the BoundingBox 2D made by boxMin and boxMax | |
IsPointOnSegment | Determines if a point in on a segment. First it checks if the parameter t for the projected point is between 0 and 1, then it checks if the test point is close enough to the segment. | |
IsPolygonConvex<T> | Returns true if the planar closed polygon is convex. | |
IsPolygonDegenerated<T> | Checks if the polygon is self-intersecting or has T junctions. | |
IsPolygonSelfIntersecting<T> | Checks if the polygon is self-intersecting. | |
IsSegmentInsideOrCrossing | Tells if a segment is inside or crossing the camera frustum. | |
IsValidMatrix | ||
KahanSum | Kahan summation. | |
lessOrEqualCurveSurfaceIntersection | ||
LimitRange<T> | Clamps a value between the specified lower and upper limits. | |
LinePlaneIntersection | Intersects the infinite line with a plane. | |
MakeGrayscale | Converts an image to grayscale. | |
Max<T> | Returns the max of three values. | |
Min<T> | Returns the min of three values. | |
MmToInches | Converts Millimeters to Inches. | |
MultMatrixd | Multiplies two matrices. | |
MultMatrixf | Multiplies two matrices. | |
MultMatrixVecd | Multiplies a matrix by a vector. | |
NextItem<T> | Return the cyclic next item in a list. | |
NormalInterpolation | Overloaded. Returns the interpolated normal at the point p somewhere in the middle of the 3D segment defined by the points p1 and p2. | |
NumberOfSegments | Computes the number of arc subdivisions according to specified chordal error and maximum angle between tangents. | |
OffsetPoint | ||
OrderEdges | ||
ParametersDontChangeSignificantly | ||
PointCoincidence | ||
PointInPolygon | Overloaded. Tests if a 2D point is inside a 2D polygon. | |
PointInRectangle | Tests if a 2D point is inside to a 2D rectangle. | |
PointInTriangle | Point in triangle test. | |
PolygonArea<T> | Computes the signed area of a polygon (the points are always projected on XY plane). | |
PolygonOrientation<T> | Computes the signed area of a polygon (the points are always projected on XY plane). | |
PrevItem<T> | Return the cyclic previous item in a list. | |
RadToDeg | Converts radians to degrees. | |
ReadXmlDouble | Overloaded. | |
ReadXmlDoubleArray | ||
ReadXmlInt32 | ||
RemoveDuplicates | Overloaded. Removes contiguous duplicated points from the list. | |
RemoveEdge | ||
ResetBBox | ||
ReverseArray<T> | Reverses the order of the elements in the array. | |
RGBtoHSL | ||
RGBtoHSV | ||
RotateLeft<T> | Rotates the array left. | |
Scaled | Craetes a scaling matrix and muliplies the original matrix by it. | |
Solve2x2 | ||
svdcmp | ||
Swap<T> | Swaps two values. | |
TransformNormals | Transforms the collection of normals with the given transformation. | |
Translated | Craetes a translation matrix and muliplies the original matrix by it. | |
TriangleArea | ||
UpdateMinMax | Overloaded. | |
UpdateMinMaxQuick | Overloaded. | |
UpdateMinMaxSlow | ||
VectorsAngle | Overloaded. Returns the angle in degrees between two vectors. | |
WriteFloatNumber | ||
WriteXmlAttribute | Overloaded. | |
WriteXmlElement<T> |
Name | Description | |
---|---|---|
FindLoopsInternal |