ParaShape

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:
#namespacemethodArgs (name : type)returnsDescription
1Pointdistance
frompoint | pointEntity
topoint | pointEntity
numberEuclidean distance between two points.
2Pointmidpoint
frompoint | pointEntity
topoint | pointEntity
pointMidpoint between two points.
3Pointinterpolate
frompoint | pointEntity
topoint | pointEntity
fractionnumber
pointLinear interpolation from→to at fraction.
4Pointtranslate
pointpoint | pointEntity
offsetvector
pointTranslate a point by an offset vector.
5Vectorlength
vectorvector
numberMagnitude (length) of a vector.
6Vectornormalize
vectorvector
vectorUnit vector in the same direction (zero → [0,0,0]).
7Vectordot
leftvector
rightvector
numberDot product.
8Vectorcross
leftvector
rightvector
vectorCross product (right-hand rule).
9Vectorangle
fromvector
tovector
angleAngle between two vectors, in degrees.
10Vectoradd
leftvector
rightvector
vectorAdd two vectors.
11Vectorsubtract
leftvector
rightvector
vectorSubtract right from left.
12Vectorscale
vectorvector
factornumber
vectorScale a vector by a scalar.
13Vectorbetween
frompoint | pointEntity
topoint | pointEntity
vectorVector from one point to another (to − from).
14PlanefromPointNormal
pointpoint | pointEntity
normalvector
planePlane {point,normal} through a point with the given normal.
15Planepoint
planeplane
pointThe point on the plane (as passed to fromPointNormal).
16Planenormal
planeplane
vectorThe plane's unit normal.
17Planedistance
planeplane
querypoint | pointEntity
numberSigned distance from the plane to a point (+ = normal side).
18AxisfromPointDirection
originpoint | pointEntity
directionvector
axisDirected half-line from origin along a unit direction.
19AxisfromTwoPoints
frompoint | pointEntity
topoint | pointEntity
axisAxis from one point through another (direction normalized).
20Axisorigin
axisaxis
pointThe axis's origin point.
21Axisdirection
axisaxis
vectorThe axis's unit direction.
22AxispointAt
axisaxis
distancelength
pointPoint on the axis at a distance from the origin.
23Curvelength
curvecurveEntity
numberArc length of the curve.
24CurveclosestPoint
curvecurveEntity
pointpoint | pointEntity
pointClosest point on the curve to a point.
25CurvepointAt
curvecurveEntity
parameternumber
pointPoint on the curve at parameter 0..1.
26CurvetangentAt
curvecurveEntity
parameternumber
vectorTangent vector at parameter 0..1.
27CurvepointAtLength
curvecurveEntity
distancelength
pointPoint at an arc-length distance from the start.
28CurvestartPoint
curvecurveEntity
pointStart point of the curve.
29CurveendPoint
curvecurveEntity
pointEnd point of the curve.
30Curvedivide
curvecurveEntity
countnumber
point[]count+1 evenly-spaced points along the curve (parameter 0..1).
31SurfacepointAt
surfacesurface
unumber
vnumber
pointPoint on the surface at parameters (u, v) ∈ [0,1]².
32SurfacenormalAt
surfacesurface
unumber
vnumber
vectorUnit surface normal at (u, v).
33Surfacecurvature
surfacesurface
unumber
vnumber
numberMean curvature of the surface at (u, v).
34Surfacearea
surfacesurface
numberTotal surface area.
35Surfaceisocurve
surfacesurface
parameternumber
directionstring
curveIsocurve at parameter in the given direction ('u' | 'v').
36Facearea
faceface | faceEntity
numberArea of the face (outer loop minus holes).
37Facenormal
faceface | faceEntity
vectorUnit outward normal of the face's plane.
38Facecentroid
faceface | faceEntity
pointCentroid of the face's outer loop vertices.
39Facecontains
faceface | faceEntity
pointpoint | pointEntity
binaryTrue if the point lies inside the face (within outer loop, outside holes).