Util Class |
Namespace: PolyFramework
The Util type exposes the following members.
| Name | Description | |
|---|---|---|
| Angle |
True angle between 2 3d vectors
Using direction of the cross product
| |
| AngleDeviationBlue | ||
| AveragePoints | ||
| BakeErrorGeo |
Bakes the problem geometry to the document on a special layer
Geometry is colored -> Orange and will have the a name that is showing what the problem is!
| |
| BFacePlanaritiy | ||
| ConnectDuals |
goes through all members of both foam objects and replaces dummy objects with
real dual references from the other foam
works only if the foam objects have the dummy duals set
will throw exception if the two are not dual of each other
| |
| CreateBlue | ||
| Decompose | ||
| DecomposeG |
Decomposes breps from a list of guids pointing at breps in the document.
Does nothing if they are not breps.
| |
| DeserializeFoam |
This deserializes a whole foam object from a Json string.
Since it only looks at a singular object the dual cannot be deserialized here.
Instead placeholder object will be used in the properties for the dual.
| |
| DeserializeFoamFromJsonFile | ||
| DeviationToColorList | ||
| DeviationToColorListGreenRed | ||
| Dot |
Dot product a.b vectors
| |
| DotAngle |
Simple dot angle - calculates the smallest angle between 2 vectors
| |
| ExtractFaces | ||
| GetBrepfromGuids |
Converts guids to breps.
Also sets the order of geometry pick-up
If geometry has order in user dictionary it is sorted by that
If geometry has no order or only partial order an order values is written to the geo
All compound breps are exploded and order is written in each face.
| |
| GetNistTime | ||
| InsideHedra |
calculates if a point is inside a uni di, or tri
| |
| LengthDeviationBlue | ||
| PointFromDict | ||
| PVToDict(Point3d) | ||
| PVToDict(Vector3d) | ||
| ScaleDeviationBlue | ||
| ValueUnitizer | ||
| VectorFromDict | ||
| WeightedAverage |