UtilityEx Class

Contains a collection of utility methods and constants for internal use.
Public Class UtilityEx 
Inherits Utility
This language is not supported or no code example is available.
public class UtilityEx : Utility
This language is not supported or no code example is available.
Methods
 
Name Description
Public method Static AllVerticesInFrustum(FrustumParams, IList<Point3D>, int)
Public method Static AllVerticesInFrustum(PlaneEquation[], Transformation, float[], int)
Public method Static AllVerticesInScreenPolygon(ScreenPolygonParams, IList<Point3D>, int) Tells if a collection of vertices is fully contained inside a polygon defined in screen coordinates.
Public method Static Append(double[,], double[,]) Appends the second array at the end of first one. (inherited from Utility).
Public method Static ArcTanProblem(double, double) See: http://hyperphysics.phy-astr.gsu.edu/hbase/ttrig.html (inherited from Utility).
Public method Static AreCollinear(Point2D[], double, out Segment2D) (inherited from Utility).
Public method Static AreEqual(IList, IList) Checks if two generic lists contain the same elements. (inherited from Utility).
Public method Static AreEqual(double, double, double) Compares two floating point numbers using the provided domain size. (inherited from Utility).
Public method Static AreEqual2D(double[], double[], double) Compares two 2D points in the given domain. (inherited from Utility).
Public method Static BoundingBox(IList<Point3D>, out Point3D, out Point3D) Returns the bounding box of a collection of 3D points. (inherited from Utility).
Public method Static BoundingRect(IList<Point2D>, out Point2D, out Point2D) Returns the bounding rectangle of a collection of 2D points. (inherited from Utility).
Public method Static BoundingRect(IList<Point>, out Point, out Point) Returns the bounding rectangle of a collection of 2D points. (inherited from Utility).
Public method Static BoundingRectOnPlane(IList<Point2D>, Plane, out Point2D, out Point2D) Returns the bounding rectangle of a collection of 2D points by using a fixed plane orientation. (inherited from Utility).
Public method Static BuildHatch(Region, double, double) Builds a line pattern that fills the specified region.
Public method Static CheckDataIntegrity(out string, out Dictionary<StringDictionary<ObjectHashSet<String>>>) Checks the data integrity between the Environment controls.

It compares item-by-item all the master collections of all the Environment instances, searching for objects used in more than one Environment.

Public method Static CheckDir<T>(IList<T>, IList<IList<T>>) (inherited from Utility).
Public method Static CircularNext<T>(LinkedListNode<T>) Returns the next 'circular' node in the linked list. (inherited from Utility).
Public method Static CircularPrevious<T>(LinkedListNode<T>) Returns the previous 'circular' node in the linked list. (inherited from Utility).
Public method Static CleanDuplicates(IList<ICurve>) Cleans duplicated curves from a contour.
Public method Static CleanQuads(IList<Int32>, IList<PointNormalUv>, out List<PointNormalUv>) Cleans a quad list from duplicated vertices. (inherited from Utility).
Public method Static CleanTriangles(IList<IndexTriangle>, IList<Point3D>, out List<IndexTriangle>, out List<Point3D>) Cleans a triangles list from duplicated vertices. (inherited from Utility).
Public method Static CleanTriangles(IList<IndexTriangle>, IList<Point3D>, out List<IndexTriangle>, out List<Point3D>, out int[]) Cleans the triangles from duplicated vertices. (inherited from Utility).
Public method Static ColorToDoubleArray(Color) Converts a Color to a double[4] with components in the [0,1] range. (inherited from Utility).
Public method Static ColorToFloatArray(Color) Converts a Color to a float[4] with components in the [0,1] range. (inherited from Utility).
Public method Static Compact(IList<Point3D>, IList<IndexTriangle>, out Point3D[]) Removes orphan vertices. (inherited from Utility).
Public method Static CompactNormals(IList<Vector3D>, IList<IndexTriangle>, out Vector3D[]) Removes orphan normals. (inherited from Utility).
Public method Static Compare(double, double) Compares two floating point numbers using a relative error of 1e-8. (inherited from Utility).
Public method Static Compare(double, double, double) Compares two floating point numbers using the given error tolerance. (inherited from Utility).
Public method Static Compare(long, long) (inherited from Utility).
Public method Static CompareWithoutTolerance(double, double) Compares two floating point numbers witohut using a tolerance (for Sorting methods). (inherited from Utility).
Public method Static ComputeBoundingBox(Transformation, IList<Point3D>, out Point3D, out Point3D) Computes the bounding box of the given array of points. (inherited from Utility).
Public method Static ComputeBoundingBox(Transformation, float[], int, int, out Point3D, out Point3D) (inherited from Utility).
Public method Static ComputeBoundingBox<T>(IList<T>, out Point3D, out Point3D) (inherited from Utility).
Public method Static ComputeBoundingBox<T>(Transformation, IList<T>, int, out Point3D, out Point3D) Computes the bounding box of the given array of points. (inherited from Utility).
Public method Static ComputeBoundingRect(IList<Point2D>, out Point2D, out Point2D) Computes the bounding box of the given array of points. (inherited from Utility).
Public method Static ComputeBoundingRect(double[,], out Point2D, out Point2D) Computes the bounding box of the given array of points. (inherited from Utility).
Public method Static ComputeItemsCount(IEnumerable<Entity>, BlockKeyedCollection) Computes the actual number of items in both plain or structured scene modes.
Public method Static ComputeMinMax(IList<Entity>, out Point3D, out Point3D) Computes bounding box min/max 3D points of a list of entities.
Public method Static ComputeTolerance(double) Computes visual refinement tolerance. (inherited from Utility).
Public method Static ComputeVisibleItemsCount(IEnumerable<Entity>, BlockKeyedCollection, LayerKeyedCollection) Computes the actual number of visible items in both plain or structured scene modes.
Public method Static ConvexHull(IList<Point3D>, double, out Point3D[], out IndexTriangle[], bool, bool) Computes the Convex Hull of a set of 3D points.
Public method Static ConvexHull(IList<Point3D>, double, bool, bool) Computes the Convex Hull of a set of 3D points.
Public method Static ConvexHull2D(IList<Point2D>) Computes the Convex Hull of a set of 2D points.
Public method Static ConvexHull2D(IList<Point2D>, bool) Computes the Convex Hull of a set of 2D points.
Public method Static CountNodes(IList<Entity>, BlockKeyedCollection, out int, out int, out int) Computes the scene graph inventory.
Public method Static CreateBOMTable(EntityList, BlockKeyedCollection, string, string, string, string, bool, flowDirection, int) Creates the Bill Of Materials.
Public method Static CreateBillOfMaterials(EntityList, BlockKeyedCollection, bool, int) Creates the data for the Bill Of Materials.
Public method Static CreateTriangle(natureType, int, int, int, int, int, int)
Public method Static CreateTriangle(natureType, int, int, int, int, int, int, int, int, int)
Public method Static DeepCopyVertices(Point3D[]) Point3D array deep copy. (inherited from Utility).
Public method Static DegToRad(double) Converts degrees to radians. (inherited from Utility).
Public method Static DetectRegionsFromContours(IList<ICurve>, double, Plane, bool) Creates an array of Regions from the curves list, automatically detecting inner and outer contours.
Public method Static DoOverlap(Mesh, Mesh) Checks if two Mesh objects intersect each other (but don't touch).
Public method Static DoOverlap2D(Point, Point, Point, Point) Check if two bounding rectangles overlap. (inherited from Utility).
Public method Static DoOverlap2D(Point2D, Point2D, Point2D, Point2D) Check if two bounding rectangles overlap. (inherited from Utility).
Public method Static DoOverlapOrTouch(Mesh, Mesh) Checks if two Mesh objects intersect each other.
Public method Static DoOverlapOrTouch(Point2D, Point2D, Point2D, Point2D)
Public method Static DoOverlapOrTouch2D(Point2D, Point2D, Point2D, Point2D) Check if two bounding boxes overlap or touch. (inherited from Utility).
Public method Static DoOverlapOrTouch2D(Point2D, Point2D, Point2D, Point2D, double) Check if two bounding rectangles overlap. (inherited from Utility).
Public method Static DoOverlapOrTouchWithIntersectionBox(Point3D, Point3D, Point3D, Point3D, out Size3D) Checks if two Axis-Aligned Bounding-Boxes intersect and computes their intersection boxes size. (inherited from Utility).
Public method Static DoubleArrayToColor(double[]) Converts a double[3] to Color. (inherited from Utility).
Public method Static DoubleArrayToString(double[]) (inherited from Utility).
Public method Static DoubleParse(string) Converts the string representation of a number to its double-precision equivalent in a culture invariant way. (inherited from Utility).
Public method Static DoubleParseIges(string)

Converts the string representation of a number to its double-precision equivalent in a culture invariant way. Before converting the number ending decimal dot is removed.

Examples:

  • The ending dot of the string "1." is removed
  • The ending dot of the string "2E-012." is removed
(inherited from Utility).
Public method Static DoubleTryParse(string, out double) Converts the string representation of a number to its double-precision equivalent in a culture invariant way. (inherited from Utility).
Public method Static DoublesToPointArray2D(double[]) Convert a list of double values to a 2D point array. (inherited from Utility).
Public method Static DoublesToPointArray3D(double[]) Converts an array of doubles to a an array of 3D points. (inherited from Utility).
Public method Static DoublesToPointArray4D(double[]) Converts an array of doubles to a an array of 4D points (only the XYZ members are converted). (inherited from Utility).
Public method Static DrawArrowOnView(DrawDirectionParams, Vector3D, Point3D) Draw an arrow parallel to the view, oriented along the curveDirection direction.
Public method Static DrawBoundingBox(RenderContextBase, Point3D, Point3D)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Public method Static EvaluateCurvature(Vector3D, Vector3D, out Vector3D, out Vector3D)

Evaluates unit tangent and curvature from first and second derivatives.

T = D1 / |D1|

K = ( D2 - (D2 o T)*T )/( D1 o D1)

(inherited from Utility).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static FindLoops(Point2D[][], out Point2D[][], out Point2D[][][]) Finds the outers and inners contours from a collection of 2d contours. (inherited from Utility).
Internal protected (Protected Friend) method Static FindLoopsInternal(Point2D[][], out Point2D[][], out Point2D[][][], out int[], out int[][]) (inherited from Utility).
Public method Static FitCircle(IList<Point2D>, Plane, out Point2D, out double) Least squares circle fit given a set of 2D points. (inherited from Utility).
Public method Static FitCircle(IList<Point3D>, out Plane, out double) Least squares circle fit given a set of 3D points. (inherited from Utility).
Public method Static FitCircle(float[], out Plane, out double) (inherited from Utility).
Public method Static FitLine(IList<Point3D>, out Point3D, out Vector3D) Linear fitting of 3D points using orthogonal regression. (inherited from Utility).
Public method Static FitLine(float[], out Point3D, out Vector3D) (inherited from Utility).
Public method Static FitPlane(IList<Point3D>) Planar fitting of 3D points using orthogonal regression. (inherited from Utility).
Public method Static FitPlane(float[]) (inherited from Utility).
Public method Static FixEndAngle(double, ref double) (inherited from Utility).
Public method Static FixRevAngle(double, double) (inherited from Utility).
Public method Static FloatArrayToColor(float[]) Converts a float[4] to Color. (inherited from Utility).
Public method Static FloatParse(string) Converts the string representation of a number to its single-precision equivalent in a culture invariant way. (inherited from Utility).
Public method Static GetBoundingBoxCorners(Point3D, Point3D) (inherited from Utility).
Public method Static GetBoundingBoxTransformed(Transformation, Point3D, Point3D, out Point3D, out Point3D) Transforms the eight corners of a world-aligned bounding box and returns the minimum and maximum corners. (inherited from Utility).
Public method Static GetCirclesTangentToTwoCircles(Circle, Circle, double, bool, bool) Computes the circles tangent to two given circles or arcs.
Public method Static GetCleanedAndConvertedEdges(List<IndexLine>, int[]) (inherited from Utility).
Public method Static GetCleanedAndConvertedTriangles(IList<IndexTriangle>, int[]) (inherited from Utility).
Public method Static GetConnectedCurves(IList<ICurve>, double) Groups the curves that are connected into CompositeCurves.
Public method Static GetContourPlane(IList<Point3D>) (inherited from Utility).
Public method Static GetConversionIndices(IList<Point3D>, List<Point3D>) (inherited from Utility).
Public method Static GetConversionIndices(IList<PointNormalUv>, List<PointNormalUv>) (inherited from Utility).
Public method Static GetCornersOnPlane(Plane, Point3D, Point3D, double) Computes a rect on the plane that encloses the eight projected bounding box corners. (inherited from Utility).
Public method Static GetCpuCount(int, out int[], out int[]) Gets the number of logical processors.
Public method Static GetCutPlane(Vector3D, Vector3D, Point3D, bool, out Plane, out Vector3D) (inherited from Utility).
Public method Static GetDeviation(Point3D, Vector3D, Point3D, Vector3D, out double) Computes the deviation of an arc defined by two 3D points and two 3D tangents. (inherited from Utility).
Public method Static GetDeviation2D(Point2D, Vector2D, Point2D, Vector2D, out double) Computes the deviation of an arc defined by two 2D points and two 2D tangents. (inherited from Utility).
Public method Static GetEdge(int, int, IList<LinkedList<SharedEdge>>) (inherited from Utility).
Public method Static GetEdgesWithoutDuplicates(int[,], int) Gets a list of edges without duplicates from a mesh of triangles or quads. (inherited from Utility).
Public method Static GetEdgesWithoutDuplicates(int[,], int, out LinkedList<SharedEdge>[]) Gets a list of edges without duplicates from a mesh of triangles or quads. (inherited from Utility).
Public method Static GetEdgesWithoutDuplicates(IList<IndexTriangle>, int, out LinkedList<SharedEdge>[]) Gets a list of edges without duplicates from a mesh of triangles. (inherited from Utility).
Public method Static GetEdgesWithoutDuplicates(IList<IndexTriangle>, int) Gets a list of edges without duplicates from a mesh of triangles. (inherited from Utility).
Public method Static GetEdgesWithoutDuplicates(SilhoPolyRegion[], int, out LinkedList<SharedEdge>[], bool) Gets a list of edges without duplicates from a mesh of triangles or quads. (inherited from Utility).
Public method Static GetEdgesWithoutDuplicates(int[][], int, out LinkedList<SharedEdge>[]) Gets a list of edges without duplicates from a mesh of polygons (3 or 4 sided mixed). (inherited from Utility).
Public method Static GetEntitiesByType(IList<Entity>, Dictionary<StringBlock>, List<Type>) Get a list of entities by type.
Public method Static GetEntitiesStats(IList<Entity>, BlockKeyedCollection, bool, bool) Obsolete. Get the statistics for a collection of entities.
Public method Static GetEntitiesStats(IList<Entity>, BlockKeyedCollection, out int, out int, out int, Dictionary<BlockDictionary<TypeInt32>>) Get the statistics for a collection of entities.
Public method Static GetEntitiesStats(IList<Entity>, LayerKeyedCollection, BlockKeyedCollection, MaterialKeyedCollection, TextStyleKeyedCollection, LineTypeKeyedCollection, HatchPatternKeyedCollection, bool, bool, bool) Get the statistics for a collection of entities.
Public method Static GetFont(FontFamily, FontStyle, FontWeight, double, float) Gets a Font starting from the commons WPF font values.
Public method Static GetFrozenColor(Color, double) Generates a color with increased lightness from the source one. (inherited from Utility).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method Static GetLinearUnitsConversionFactor(linearUnitsType, linearUnitsType) Gets the scale factor to use for the conversion between linearUnitsTypes (inherited from Utility).
Public method Static GetLinesTangentToCircleFromPoint(Circle, Point3D) Computes the tangent lines from a point to a circle.
Public method Static GetLinesTangentToCircleFromPoint(Circle, Point3D, out Line[]) Computes the tangent lines from a point to a circle.
Public method Static GetLinesTangentToTwoCircles(Circle, Circle) Computes the segments tangent to two given circles or arcs.
Public method Static GetLinesTangentToTwoCircles(Circle, Circle, out Line[]) Computes the segments tangent to two given circles.
Public method Static GetLogo() Gets the nurbs representation of the devDept logo.
Public method Static GetMassUnitsConversionFactor(massUnitsType, massUnitsType) Gets the scale factor to use for the conversion between massUnitsTypes (inherited from Utility).
Public method Static GetMatrixForNormals(Transformation) Gets the matrix needed for normals transformation. (inherited from Utility).
Public method Static GetMaxGap(IList<ICurve>, bool) Computes the maximum gap between curve segments.Assumes sorted and oriented segments.
Public method Static GetMinMax(int, int, out int, out int) (inherited from Utility).
Public method Static GetNextCurve(Point3D, ICurve, bool, out double, out bool)
Public method Static GetOrientationTransformation(Point3D, Vector3D) Gets the transformation to orient an entity built on the X-Axis on the given direction. (inherited from Utility).
Public method Static GetOuterIndex(IList<ICurve>, double) Returns the outer contour index.
Public method Static GetOuterIndex(IList<Polygon2D>) Returns the outer contour index.
Public method Static GetPlanarIntersectionProfile(Plane, Point3D, Point3D, out bool) (inherited from Utility).
Public method Static GetPlane(Point3D, Point3D, Point3D, out Plane) (inherited from Utility).
Public method Static GetPointsOnPlane(Plane, IList<Point2D>) Gets the array of Point3D from a 2D profile. (inherited from Utility).
Public method Static GetProgress(int[], int[], int) Gets progress value from parallel tasks. (inherited from Utility).
Public method Static GetRandomColor(Random) Generates a random color. (inherited from Utility).
Public method Static GetRandomColorDark(Random, int) Generates a dark random color. (inherited from Utility).
Public method Static GetReferencedBlocksNames(IList<Entity>, Dictionary<StringBlock>, Dictionary<StringBlock>) Returns the set of block in use (referenced by a BlockReference) names.
Public method Static GetRevisionCloud(ICurve, Plane, double) Builds a revision cloud from the specified ICurve.
Public method Static GetRotationAxisAndAngle(Vector3D, Vector3D, out Vector3D, out double) Returns the rotation axis and the angle to rotate from one vector to another. (inherited from Utility).
Public method Static GetSampling(float[]) (inherited from Utility).
Public method Static GetSampling<T>(IList<T>) (inherited from Utility).
Public method Static GetScalingLevel() Gets the display scale factor. (inherited from Utility).
Public method Static GetSignificantPointsOnICurve(ICurve) Selects the first and start point of an ICurve, the vertices of a LinearPath, and the startPoints of the segments of a CompositeCurve
Public method Static GetSizeOnPlane(Point3D, Point3D, Plane, out Point2D, out Point2D) Gets 2D corners of the rectangle enclosing the projection of the 3D bounding box corners. (inherited from Utility).
Public method Static GetSkinFaces(int[][], int, out LinkedList<SharedFace>[]) Gets a list of faces without duplicates from a mesh of triangles or quads. (inherited from Utility).
Public method Static GetSliceVerticesAndNormals(int, double, int, Point3D, Point3D, Point3D[], out Point3D, out Point3D, out Point3D, out Point3D, out Vector3D, out Vector3D, out Vector3D, out Vector3D) Quad strip generation for Bar entity. Born for Bar entity, now used also for Fem Truss elements (inherited from Utility).
Public method Static GetSupportedLinearUnits(linearUnitsType) Converts linearUnitsType to <seealso cref="supportedLinearUnitsType" /> (inherited from Utility).
Public method Static GetSupportedMassUnits(massUnitsType) Converts massUnitsType to <seealso cref="supportedMassUnitsType" /> (inherited from Utility).
Public method Static GetTrianglesPlane(IList<IndexTriangle>, IList<Point3D>) Gets the first valid plane found from a collection of triangles. (inherited from Utility).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method Static GetUniqueEdges(LinkedList<SharedEdge>[], int) (inherited from Utility).
Public method Static GetUniqueVertices(IList<Point3D>) (inherited from Utility).
Public method Static GetUniqueVertices(IList<PointNormalUv>) (inherited from Utility).
Public method Static GetUnitsToMmFactor(linearUnitsType) Gets the factor to convert from units to mm.
Public method Static GetUnusedBlockName<T>(string, BlockKeyedCollection<T>, bool) Gets a new name for block creation adding a number as suffix to the original name to avoid duplicates block names.
Public method Static GetUnusedLayerName(string, LayerKeyedCollection, bool) Gets a new name for layer adding a number as suffix to the original name to avoid duplicates layer names.
Public method Static GetXElement(string, Vector2D) (inherited from Utility).
Public method Static GetXElement(string, Vector3D) (inherited from Utility).
Public method Static GetXElement<T>(string, T) (inherited from Utility).
Public method Static HSLtoRGB(double[]) (inherited from Utility).
Public method Static HSVtoRGB(double[]) (inherited from Utility).
Public method Static HermiteSpline(Point2D, Vector2D, Point2D, Vector2D, double) Computes a point on the Hermite Spline. (inherited from Utility).
Public method Static InchesToMm(double) Converts Inches to Millimeters. (inherited from Utility).
Public method Static InitializeMinMax(Point3D, out Point3D, out Point3D) (inherited from Utility).
Public method Static InsideOrCrossingFrustum(FrustumParams, IList<Point3D>, IList<IndexTriangle>) Checks whether the triangles are inside or crossing the frustum defined by the given planes.
Public method Static InsideOrCrossingFrustumQuad(FrustumParams, IList<Point3D>) Checks whether the quad are inside or crossing the frustum defined by the given planes.
Public method Static InsideOrCrossingScreenPolygon(Point3D, Point3D, Point3D, ScreenPolygonParams) Checks whether the triangle is inside or crossing the given screen polygon.
Public method Static InsideOrCrossingScreenPolygonQuad(Point3D, Point3D, Point3D, Point3D, ScreenPolygonParams) Checks whether the quad is inside or crossing the given screen polygon.
Public method Static IntArrayToString(int[]) (inherited from Utility).
Public method Static Intersect3DLines(Point3D, Vector3D, Point3D, Vector3D, out double, out double, out Point3D) Traces two lines in 3D. x0(s) = p0 + s * t0 x1(t) = p1 + t * t1 (inherited from Utility).
Public method Static Intersection2D(Point3D[], Segment2D, bool) Seek intersections between a polygonal chain and a segment. (inherited from Utility).
Public method Static Intersection2D(Point3D[], Point3D[], bool) Seek intersections between two polygonal chains. (inherited from Utility).
Public method Static IntersectionBox(Point3D, Point3D, Point3D, Point3D, out Point3D, out Point3D) Computes the intersection rectangle between two axis aligned boxes. This function assumes that the two boxes overlap. (inherited from Utility).
Public method Static IntersectionRect(Point2D, Point2D, Point2D, Point2D, out Point2D, out Point2D) Computes the intersection rectangle between two axis aligned rectangles. This function assumes that the two rectangles overlap. (inherited from Utility).
Public method Static InvalidOGLPoint(Point3D) Tells if the point has valid coordinates for the OpenGL flaot precision. (inherited from Utility).
Public method Static InvertMatrixd(double[], double[]) Inverts a matrix. (inherited from Utility).
Public method Static IsClosedProfile(IList<Point2D>) Tells if a profile is closed, depending on a tolerance computed from its size. (inherited from Utility).
Public method Static IsClosedProfile(IList<Point3D>) Tells if a profile is closed, depending on a tolerance computed from its size. (inherited from Utility).
Public method Static IsImperial(linearUnitsType) Returns true if the specified unit is Inches, Feet or Miles. (inherited from Utility).
Public method Static IsImperial(massUnitsType) Returns true if the specified unit is Ounces, Pounds, Stones, ShortTons, LongTons. (inherited from Utility).
Public method Static IsInFrustum(PlaneEquation[], Point3D, double) Tells if a hypothetical sphere with the specified center and radius is inside the given frustum planes. (inherited from Utility).
Public method Static IsInFrustum(PlaneEquation[], Point3D, double, out bool) Tells if a hypothetical sphere with the specified center and radius is inside the given frustum planes. (inherited from Utility).
Public method Static IsInFrustum(PlaneEquation[], Point3D, Point3D) Tells if a hypothetical sphere with the specified center and radius is inside the given frustum planes. (inherited from Utility).
Public method Static IsLine(ICurve) Checks if the curve is a line or a linear nurbs segment (Nurbs and Ultimate editions only).
Public method Static IsOrientedClockwise<T>(IList<T>) Detects polygon orientation (the points are always projected on XY plane). (inherited from Utility).
Public method Static IsPointInside(Point3D, Point3D, Point3D, double, bool) Checks if the point is inside the specified bounding box. (inherited from Utility).
Public method Static IsPointInsideOrCrossing(PlaneEquation[], Point3D) Tells if a point is inside the camera frustum. (inherited from Utility).
Public method Static IsPointInsideOrOntoBBox2D(Point2D, Point2D, Point2D) Check if the Point3D is inside or onto the BoundingBox 2D made by boxMin and boxMax (inherited from Utility).
Public method Static IsPointOnSegment(Point2D, Point2D, Point2D, double) 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. (inherited from Utility).
Public method Static IsPolygonConvex<T>(IList<T>) Returns true if the planar closed polygon is convex. (inherited from Utility).
Public method Static IsPolygonDegenerated<T>(IList<T>) Checks if the polygon is self-intersecting or has T junctions. (inherited from Utility).
Public method Static IsPolygonSelfIntersecting<T>(IList<T>) Checks if the polygon is self-intersecting. (inherited from Utility).
Public method Static IsSegmentInsideOrCrossing(PlaneEquation[], Segment3D) Tells if a segment is inside or crossing the camera frustum. (inherited from Utility).
Public method Static IsValidMatrix(double[]) (inherited from Utility).
Public method Static KahanSum(double[]) Kahan summation. (inherited from Utility).
Public method Static LimitRange<T>(T, ref T, T) Clamps a value between the specified lower and upper limits. (inherited from Utility).
Public method Static LinePlaneIntersection(Point3D, Point3D, PlaneEquation, out Point3D) Intersects the infinite line with a plane. (inherited from Utility).
Public method Static LoadBitmapWithoutLockingFile(string) Creates an image without locking the input file. (inherited from Utility).
Public method Static MakeGrayscale(Bitmap) Converts an image to grayscale. (inherited from Utility).
Public method Static Max<T>(T, T, T) Returns the max of three values. (inherited from Utility).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static Min<T>(T, T, T) Returns the min of three values. (inherited from Utility).
Public method Static MmToInches(double) Converts Millimeters to Inches. (inherited from Utility).
Public method Static MultMatrixVecd(double[], double[]) Multiplies a matrix by a vector. (inherited from Utility).
Public method Static MultMatrixd(double[], double[]) Multiplies two matrices. (inherited from Utility).
Public method Static MultMatrixf(float[], float[]) Multiplies two matrices. (inherited from Utility).
Public method Static NextItem<T>(IList<T>, int) Return the cyclic next item in a list. (inherited from Utility).
Public method Static NormalInterpolation(Point3D, Vector3D, Point3D, Vector3D, Point3D, Vector3D, Point3D, Vector3D, Point3D, Vector3D) Returns the interpolated normal at the point p somewhere in the middle of the 3D rectangular face defined by the points p1, p2, p3 and p4. (inherited from Utility).
Public method Static NormalInterpolation(Point3D, Vector3D, Point3D, Vector3D, Point3D) Returns the interpolated normal at the point p somewhere in the middle of the 3D segment defined by the points p1 and p2. (inherited from Utility).
Public method Static NumberOfSegments(double, double, double, double) Computes the number of arc subdivisions according to specified chordal error and maximum angle between tangents. (inherited from Utility).
Public method Static NumberOfSegmentsByLength(double, double, double) Computes the number of arc subdivisions according to specified maximum segment length. (inherited from Utility).
Public method Static OffsetPoint(Point3D, Point3D, double, out Point3D) (inherited from Utility).
Public method Static OrderEdges(List<IndexLine>, out List<IndexLine>) Create an ordered list of edges without duplicates. (inherited from Utility).
Public method Static ParametersDontChangeSignificantly(double, double) (inherited from Utility).
Public method Static PointCoincidence(Vector3D, Vector3D, double, out Vector3D, out double) (inherited from Utility).
Public method Static PointInPolygon(Point2D, IList<Point2D>) Tests if a 2D point is inside a 2D polygon. (inherited from Utility).
Public method Static PointInPolygon(Point2D, IList<Polygon2D>) Tests if a 2D point is inside to a region composed by multiple 2D polygons (clockwise/anticlockwise orientation rule). (inherited from Utility).
Public method Static PointInPolygon(Point2D, IList<IList<Point2D>>, double) Tests if a 2D point is inside to a region composed by multiple 2D polygons (clockwise/anticlockwise orientation rule). (inherited from Utility).
Public method Static PointInPolygon(Point2D, IList<Point2D>, double) Tests if a 2D point is inside a 2D polygon. (inherited from Utility).
Public method Static PointInRect(Point2D, Point2D, Point2D) 2D point in rectangle test. (inherited from Utility).
Public method Static PointInRectangle(Point2D, Point2D, Point2D) Tests if a 2D point is inside to a 2D rectangle. (inherited from Utility).
Public method Static PointInTriangle(Point2D, Point2D, Point2D, Point2D) 2D point in triangle test. (inherited from Utility).
Public method Static PointInTriangle(double, double, double, double, double, double, double, double) Point in triangle test. (inherited from Utility).
Public method Static PolygonArea(double[,]) Computes the signed area of a polygon (the points are always projected on XY plane). (inherited from Utility).
Public method Static PolygonArea<T>(IList<T>) Computes the signed area of a polygon (the points are always projected on XY plane). (inherited from Utility).
Public method Static PolygonOrientation<T>(IList<T>) Computes the signed area of a polygon (the points are always projected on XY plane). (inherited from Utility).
Public method Static PrevItem<T>(IList<T>, int) Return the cyclic previous item in a list. (inherited from Utility).
Public method Static RGBtoHSL(Color, out double[]) (inherited from Utility).
Public method Static RGBtoHSV(Color, out double[]) (inherited from Utility).
Public method Static RadToDeg(double) Converts radians to degrees. (inherited from Utility).
Public method Static ReadXmlDouble(XmlNode) (inherited from Utility).
Public method Static ReadXmlDouble(string) (inherited from Utility).
Public method Static ReadXmlDoubleArray(XmlNode) (inherited from Utility).
Public method Static ReadXmlInt32(string) (inherited from Utility).
Public method Static RemoveDuplicates<T>(IList<T>) Removes contiguous duplicated points from the list. (inherited from Utility).
Public method Static RemoveDuplicates<T>(IList<T>, double) Removes contiguous duplicated points from the list. (inherited from Utility).
Public method Static RemoveDuplicates<T>(IList<T>, out IList<Int32>) Removes contiguous duplicated points from the list. (inherited from Utility).
Public method Static RemoveEdge(int, int, LinkedList<SharedEdge>[]) (inherited from Utility).
Public method Static ResetBBox(out Point3D, out Point3D) (inherited from Utility).
Public method Static ReverseArray<T>(IList<T>) Reverses the order of the elements in the array. (inherited from Utility).
Public method Static RotateLeft<T>(T[]) Rotates the array left. (inherited from Utility).
Public method Static RotateRight<T>(T[]) Rotates the array right. (inherited from Utility).
Public method Static RotationMinimizingFrames(Plane, Point3D[], Vector3D[]) Computes a set of planes along the curve that are perpendicular to the curve and are oriented in a way that avoids abrupt changes in the directions of the X and Y axes.
Public method Static Scaled(double, double, double, ref double[]) Craetes a scaling matrix and muliplies the original matrix by it. (inherited from Utility).
Public method Static SetImageOpacity(Image, float) Changes the opacity of an image. (inherited from Utility).
Public method Static Simplify<T>(IList<T>, double) Uses the Douglas Peucker algorithm to reduce the number of points. (inherited from Utility).
Public method Static SmartAdd(IList<ICurve>, bool) Returns a CompositeCurve if the number of curves is bigger than one.
Public method Static Solve2x2(double, double, double, double, double, double, out double, out double, out double) (inherited from Utility).
Public method Static SortAndOrient(IList<ICurve>) Chains curves using the minimum distance between individual curve ends.
Public method Static SortAndOrient(IList<ICurve>, bool, bool, double) Chains curves using the minimum distance between individual curve ends keeping the first curve first.
Public method Static SortAndOrient(IList<ICurve>, double) Chains curves using the minimum distance between individual curve ends keeping the first curve first.
Public method Static SplitEdgeOnSurfaceSeams(Brep) For internal use only.
Public method Static Swap<T>(ref T, ref T) Swaps two values. (inherited from Utility).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method Static TransformNormals(Transformation, Vector3D[]) Transforms the collection of normals with the given transformation. (inherited from Utility).
Public method Static Translated(double, double, double, ref double[]) Craetes a translation matrix and muliplies the original matrix by it. (inherited from Utility).
Public method Static TriangleArea(Point3D, Point3D, Point3D) (inherited from Utility).
Public method Static TriangleRectangleOverlap(Point2D[], Point2D[]) 2D triangle rectangle overlap test. (inherited from Utility).
Public method Static TriangleTriangleIntersection(Point3D, Point3D, Point3D, Point3D, Point3D, Point3D, out bool) Fast Triangle-Triangle intersection between ccw T1[p1,q1,r1] and ccw T2[p2,q1,r2] (From the Devillers and Guigue algorithm). (inherited from Utility).
Public method Static TriangleTriangleIntersection(double[], double[], double[], double[], double[], double[], out bool) Fast Triangle-Triangle intersection between ccw T1[p1,q1,r1] and ccw T2[p2,q1,r2] (From the Devillers and Guigue algorithm). (inherited from Utility).
Public method Static TriangleTriangleIntersection2D(Point2D, Point2D, Point2D, Point2D, Point2D, Point2D) Fast Triangle-Triangle 2D intersection between ccw T1[p1,q1,r1] and ccw T2[p2,q1,r2] (From the Devillers and Guigue algorithm). (inherited from Utility).
Public method Static TriangleTriangleIntersection2D(double[], double[], double[], double[], double[], double[]) Fast Triangle-Triangle 2D intersection between ccw T1[p1,q1,r1] and ccw T2[p2,q1,r2] (From the Devillers and Guigue algorithm). (inherited from Utility).
Public method Static TriangleTriangleIntersectionNO(Point3D, Point3D, Point3D, Point3D, Point3D, Point3D) (inherited from Utility).
Public method Static Triangulate(IList<Point3D>, IList<IList<Point3D>>, IList<Point3D>, IList<Segment3D>) Triangulates a set of contours/points.
Public method Static Triangulate(IList<Point2D>, IList<IList<Point2D>>, bool, out Point2D[], out IndexTriangle[]) Triangulates a set of contours.
Public method Static Triangulate(IList<Point3D>, natureType) Triangulate a collection of 2.5D points (terrain like).
Public method Static Triangulate(Region, double, int) Triangulates (meshes) the specified Region.
Public method Static UpdateMinMax(Transformation, IList<Point2D>, int, Point2D, Point2D) (inherited from Utility).
Public method Static UpdateMinMax(Transformation, IList<Point3D>, int, Point3D, Point3D) (inherited from Utility).
Public method Static UpdateMinMax(double, ref double, ref double) (inherited from Utility).
Public method Static UpdateMinMaxQuick(Point3D, Point3D, Point3D) (inherited from Utility).
Public method Static UpdateMinMaxQuick(PointNormalUv, Point2D, Point2D) (inherited from Utility).
Public method Static UpdateMinMaxQuick(double, double, Point2D, Point2D) (inherited from Utility).
Public method Static UpdateMinMaxQuick(double, double, double, Point3D, Point3D) (inherited from Utility).
Public method Static UpdateMinMaxSlow(Point3D, Point3D, Point3D) (inherited from Utility).
Public method Static VectorsAngle(Vector3D, Vector3D, Plane) (inherited from Utility).
Public method Static VectorsAngle(Vector3D, Vector3D, Vector3D) Returns the angle in degrees between two vectors. (inherited from Utility).
Public method Static VertexInScreenPolygon(Point3D, IList<Point2D>, Point2D, Point2D, double[], int[]) Checks whether a 3D vertex is inside the given screen polygon.
Public method Static WriteFloatNumber(double) (inherited from Utility).
Public method Static WriteXmlAttribute(string, Vector2D, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlAttribute(string, Vector3D, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlAttribute(string, double, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlAttribute(string, int, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlAttribute(string, string, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlAttribute<T>(string, T, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlElement(string, Vector2D, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlElement(string, Vector3D, XmlTextWriter) (inherited from Utility).
Public method Static WriteXmlElement<T>(string, T, XmlTextWriter) (inherited from Utility).
Public method Static lessOrEqualCurveSurfaceIntersection(double, double, double) (inherited from Utility).
Public method Static svdcmp(double[,], out double[], out double[,]) (inherited from Utility).
Top
Fields
 
Name Description
Public field Static LinearConversionFactors Gets linear conversion factor between two units. (inherited from Utility).
Public field Static MassConversionFactors Gets mass conversion factor between two units. (inherited from Utility).
Top

.NET Framework

Supported in: 4.8

In this article

Definition