Measure

This section describes operators belonging to the Measure category.

This page discusses:

Angle Vectors

Returns the angle between two vectors.

Inputs

Name Type Description
Vector 1 Vector —
Vector 2 Vector —
Vector —

Outputs

Name Type Description
Angle ANGLE —

Are Collinear

Returns whether the two given vectors are collinear or not.

Inputs

Name Type Description
Direction 1 Vector The first direction vector.
Direction 2 Vector The second direction vector.

Outputs

Name Type Description
O Boolean —

Are Coplanar

Checks if inputs (points or vertices or vectors) are coplanar, collinear or coincident. Returns also the maximum distance to mean plane.

Inputs

Name Type Description
Pts —
Create Plane Boolean If true, creates the plane if points are coplanar.

Outputs

Name Type Description
Coplanar Boolean —
Collinear Boolean —
Coincident Boolean —
Distance LENGTH Maximum distance to the mean plane.
Plane GeometricPlane —

Area

Gives the area of a surface.

Inputs

Name Type Description
Surface Any geometry (volume, surface, point,...) —

Outputs

Name Type Description
Area AREA —

Coordinates

Gives the coordinates of a point.

Inputs

Name Type Description
Point Point Input point.
Ref Axis System Matrix Axis System Reference.

Outputs

Name Type Description
X LENGTH X coordinate.
Y LENGTH Y coordinate.
Z LENGTH Z coordinate.

Curvature

Gives the curvature radius of a curve c at a point p.

Inputs

Name Type Description
Curve Curve Curve reference.
Point Point Curvature evaluation location point.

Outputs

Name Type Description
Curvature Real Curvature (equivalent to mm-1).
Normal Vector Curvature normal direction.
Bi-normal Vector Curvature bi-normal direction.

Curve Length

Gives the length of a curve.

Inputs

Name Type Description
Curve Curve Input curve.

Outputs

Name Type Description
Length LENGTH Curvilinear length of the curve.

Distance

Gives the distance between two objects.

Inputs

Name Type Description
Object 1 Any geometry (volume, surface, point,...) First object.
Object 2 Any geometry (volume, surface, point,...) Second object.
Direction Vector Optional direction for distance computation along an axis.

Outputs

Name Type Description
Distance LENGTH —

Geometries Similarity

Compares two geometrical objects taking into account some similarity constraints and return a similarity status, a similarity score and a transformation matrix.

Inputs

Name Type Description
Geometry 1 The first geometry to compare.
Geometry 2 The second geometry to compare.
Min Similarity Score Real The minimal similarity score to consider the geometries are similar. This is a number between 0 and 1. 1 means geometries should be perfectly identical. 0.9 means 90% identical.
Mode Integer Choose the transformations to accept. 1. Default: all kind of transformations; 2. Only Identity: only strict identity, no transformations; 3. Only Translation: only translations; 4. Only Isometry: all kind of transformations except scale changes; 5. Only Positive: all kind of transformations except symmetry; 6. Only Negative: all kind of transformations only in symmetry; 7. Only Positive Isometry: all kind of transformations except symmetry and scale change; 8. Only Negative Isometry: all kind of transformations except scale changes, only in symmetry; 9. Only Mirror: only symmetry.

Outputs

Name Type Description
Similarity Check Boolean A boolean, result of the similarity check.
Similarity Score Real The similarity score if the similarity check is passed.
Transformation AxisSystemMatrix The AxisSystemMatrix giving the transformation from Body 1 to Body 2 if the similarity check is passed.

Is Closed

Checks if a curve or a surface is closed or not.

Inputs

Name Type Description
Geometry Any geometry (volume, surface, point,...) Curve or surface to check.

Outputs

Name Type Description
Result Boolean —

Is Inside

Checks if an object is inside, outside or intersects another one. Works in 2D or 3D mode (you can check if a point is inside a planar closed curve for example). In 2D mode, the two objects have to be in the same plane.

Inputs

Name Type Description
Object Any geometry (volume, surface, point,...) Object to be checked. Can be any type of geometry.
In Any geometry (volume, surface, point,...) Target object. Can be a closed curve or a closed surface or a volume.

Outputs

Name Type Description
Inside Boolean True if the object is inside the target (can be tangent), False otherwise.
Intersect Boolean True if the object has an intersection with the target.
Outside Boolean True if the object is outside the target, False otherwise.
Diagnosis Integer 1 if the object is inside the target (it may be tangent), 2 if the object is intersecting the target and is neither inside nor outside, 3 if the object is outside the target (it may be tangent).

Is Laying On

Checks if a geometric object is laying on another one.

Inputs

Name Type Description
Object Any geometry (volume, surface, point,...) Object to be checked. Can be a point or a curve.
On Any geometry (volume, surface, point,...) Target object. Can be a curve or a surface.
Mod Integer Laying on analysis mode. Check geometric object is either totally laying on target, or totally and even partly laying on target.
Deviation Length Maximum distance deviation (default= resolution) Note: Usable range for deviation = [resolution , 100*resolution].

Outputs

Name Type Description
Status Boolean 'True' if the object is laying on the target, 'False' otherwise.

Is Planar

Checks if a curve or a surface is planar and under option provides the plane as an output.

Inputs

Name Type Description
Object Any geometry (volume, surface, point,...) —
Create Plane Boolean —

Outputs

Name Type Description
Planar Boolean —
Plane GeometricPlane —

Point ratio on curve

Evaluates the ratio of a point on a curve. Provides a ratio corresponding to the position of the closest point from the input point on the curve.

Inputs

Name Type Description
Point Point Point to be evaluated.
Curve Curve Curve the point is evaluated on.

Outputs

Name Type Description
Rat Real —

Surface Curvature

Compute curvature on a surface at a point in a given direction.

Inputs

Name Type Description
Surface Surface Surface.
Point Point Point.
Direction Vector Direction.

Outputs

Name Type Description
Curvature Real Curvature (mm-1). Note : if direction input not specified returns minimum curvature value.
Min curvature Real Minimum curvature (mm-1).
Min direction Vector Minimum curvature direction , vector in tangent plane at surface on point.
Max curvature Real Maximum Curvature (mm-1).
Max direction Vector Maximum curvature direction , vector in tangent plane at surface on point.

Volume

Gives the volume of a closed surface or volume.

Inputs

Name Type Description
Geometry Any geometry (volume, surface, point,...) —

Outputs

Name Type Description
Volume Value VOLUME —