ParaShape Function Registry
39 functions — 4 Point · 9 Vector · 4 Plane · 5 Axis · 8 Curve · 5 Surface · 4 Face
Pure-math computations exposed inside expressions via PascalCase namespaces.
Namespace:
| # | namespace | method | Args (name : type) | returns | Description |
|---|---|---|---|---|---|
| 1 | Point | distance | frompoint | pointEntity topoint | pointEntity | number | Euclidean distance between two points. |
| 2 | Point | midpoint | frompoint | pointEntity topoint | pointEntity | point | Midpoint between two points. |
| 3 | Point | interpolate | frompoint | pointEntity topoint | pointEntity fractionnumber | point | Linear interpolation from→to at fraction. |
| 4 | Point | translate | pointpoint | pointEntity offsetvector | point | Translate a point by an offset vector. |
| 5 | Vector | length | vectorvector | number | Magnitude (length) of a vector. |
| 6 | Vector | normalize | vectorvector | vector | Unit vector in the same direction (zero → [0,0,0]). |
| 7 | Vector | dot | leftvector rightvector | number | Dot product. |
| 8 | Vector | cross | leftvector rightvector | vector | Cross product (right-hand rule). |
| 9 | Vector | angle | fromvector tovector | angle | Angle between two vectors, in degrees. |
| 10 | Vector | add | leftvector rightvector | vector | Add two vectors. |
| 11 | Vector | subtract | leftvector rightvector | vector | Subtract right from left. |
| 12 | Vector | scale | vectorvector factornumber | vector | Scale a vector by a scalar. |
| 13 | Vector | between | frompoint | pointEntity topoint | pointEntity | vector | Vector from one point to another (to − from). |
| 14 | Plane | fromPointNormal | pointpoint | pointEntity normalvector | plane | Plane {point,normal} through a point with the given normal. |
| 15 | Plane | point | planeplane | point | The point on the plane (as passed to fromPointNormal). |
| 16 | Plane | normal | planeplane | vector | The plane's unit normal. |
| 17 | Plane | distance | planeplane querypoint | pointEntity | number | Signed distance from the plane to a point (+ = normal side). |
| 18 | Axis | fromPointDirection | originpoint | pointEntity directionvector | axis | Directed half-line from origin along a unit direction. |
| 19 | Axis | fromTwoPoints | frompoint | pointEntity topoint | pointEntity | axis | Axis from one point through another (direction normalized). |
| 20 | Axis | origin | axisaxis | point | The axis's origin point. |
| 21 | Axis | direction | axisaxis | vector | The axis's unit direction. |
| 22 | Axis | pointAt | axisaxis distancelength | point | Point on the axis at a distance from the origin. |
| 23 | Curve | length | curvecurveEntity | number | Arc length of the curve. |
| 24 | Curve | closestPoint | curvecurveEntity pointpoint | pointEntity | point | Closest point on the curve to a point. |
| 25 | Curve | pointAt | curvecurveEntity parameternumber | point | Point on the curve at parameter 0..1. |
| 26 | Curve | tangentAt | curvecurveEntity parameternumber | vector | Tangent vector at parameter 0..1. |
| 27 | Curve | pointAtLength | curvecurveEntity distancelength | point | Point at an arc-length distance from the start. |
| 28 | Curve | startPoint | curvecurveEntity | point | Start point of the curve. |
| 29 | Curve | endPoint | curvecurveEntity | point | End point of the curve. |
| 30 | Curve | divide | curvecurveEntity countnumber | point[] | count+1 evenly-spaced points along the curve (parameter 0..1). |
| 31 | Surface | pointAt | surfacesurface unumber vnumber | point | Point on the surface at parameters (u, v) ∈ [0,1]². |
| 32 | Surface | normalAt | surfacesurface unumber vnumber | vector | Unit surface normal at (u, v). |
| 33 | Surface | curvature | surfacesurface unumber vnumber | number | Mean curvature of the surface at (u, v). |
| 34 | Surface | area | surfacesurface | number | Total surface area. |
| 35 | Surface | isocurve | surfacesurface parameternumber directionstring | curve | Isocurve at parameter in the given direction ('u' | 'v'). |
| 36 | Face | area | faceface | faceEntity | number | Area of the face (outer loop minus holes). |
| 37 | Face | normal | faceface | faceEntity | vector | Unit outward normal of the face's plane. |
| 38 | Face | centroid | faceface | faceEntity | point | Centroid of the face's outer loop vertices. |
| 39 | Face | contains | faceface | faceEntity pointpoint | pointEntity | binary | True if the point lies inside the face (within outer loop, outside holes). |