Point Constructors Functions

This function lets you manage the creation of points by defining the formula using point constructors.

This page discusses:

center

Creates a point from a circle. The circle can be of any type (sketch or GSM circle). The point which is created is the circle center.

Signature

center(Circle) : Point

Arguments

NameInput / OutputRequired?TypeComment
InYesCircle-

ReturnType

Point

Example

Geometrical Set.1\Point.10 = circle (Geometrical Set.1\Circle.1)

centerofgravity

Constructs the center of gravity of a solid (i.e. a PartBody type feature). In case of a face, the center of gravity of the equivalent volume is computed with a unit thickness. Whereas, for a profile, it is computed with a unit section swept along the boundary.

Signature

centerofgravity([Body, ..]) : Point

Arguments

NameInput / OutputRequired?TypeComment
InNoBody-

ReturnType

Point

Example

Geometrical Set.1\Point.12 = centerofgravity (PartBody) 

curvaturecenter

Constructs the curvature center of a curve for a given point.

Signature

curvaturecenter(crv : Curve, pt : Point) : Point

Arguments

NameInput / OutputRequired?TypeComment
crvInYesCurve-
ptInYesPoint-

ReturnType

Point

Example

Geometrical Set.1\Point.13 = curvaturecenter
(Geometrical Set.1\Circle.1, Geometrical Set.1\Point.6)

extremum

Constructs an extremum point. The inputs are a solid, three directions, and three Booleans.

Signature

extremum(Solid, Direction, Boolean, Direction, Boolean, Direction, Boolean) : Point

Arguments

NameInput / OutputRequired?TypeComment
InYesSolid-
InYesDirection-
InYesBoolean-
InYesDirection-
InYesBoolean-
InYesDirection-
InYesBoolean-

ReturnType

Point

extremum

Constructs an extremum point. The inputs are a surface, three directions, and three Booleans.

Signature

extremum(Surface, Direction, Boolean, Direction, Boolean, Direction, Boolean) : Point

Arguments

NameInput / OutputRequired?TypeComment
InYesSurface-
InYesDirection-
InYesBoolean-
InYesDirection-
InYesBoolean-
InYesDirection-
InYesBoolean-

ReturnType

Point

extremum

Constructs an extremum point. The inputs are a curve, three directions, and three Booleans.

Signature

extremum(Curve, Direction, Boolean, Direction, Boolean, Direction, Boolean) : Point

Arguments

NameInput / OutputRequired?TypeComment
InYesCurve-
InYesDirection-
InYesBoolean-
InYesDirection-
InYesBoolean-
InYesDirection-
InYesBoolean-

ReturnType

Point

Example

Geometrical Set.1\Point.2 = extremum
(`Geometrical Set.1\Circle.1` ,direction (`xy plane`) ,FALSE,
direction (`xy plane` ),TRUE, direction (`xy plane` ),TRUE)

point

Creates a point from its three coordinates. Values or parameter names can be used to pass the arguments.

Signature

point(x : LENGTH, y : LENGTH, z : LENGTH) : Point

Arguments

NameInput / OutputRequired?TypeComment
xInYesLENGTH-
yInYesLENGTH-
zInYesLENGTH-

ReturnType

Point

Example

Geometrical Set.1\Point.1 = point(10mm,10mm,10mm)  

Specifying parameter names:

Geometrical Set.1\Point.4 = point(0mm,L3,L1)

point2dto3d

Converts a 2D point (i.e. a point in a 2D sketch) into a 3D point by valuating the parameters.

Signature

point2dto3d(2DPoint : Point) : Point

Arguments

You can valuate a 2D point which can be an existing datum point or a volatile point. The constructor computes the new 3D point at the same coordinates as that of the 2D point.

NameInput / OutputRequired?TypeComment
2DPointInYesPoint-

ReturnType

Point

Example

pointbetween

Creates a point between another two points.

Signature

pointbetween(pt1 : Point, pt2 : Point, ratio : Real, orientation : Boolean) : Point

Arguments

If true is specified in the fourth argument, the third parameter is the ratio of the distance pt1-new point to the pt1-pt2 distance. If false is specified in the fourth argument, the ratio expresses the distance pt2-new point to the pt1-pt2 distance (to create a point at the middle between pt1 and pt2, specify a ratio of 0.5).
NameInput / OutputRequired?TypeComment
pt1InYesPoint-
pt2InYesPoint-
ratioInYesReal-
orientationInYesBoolean-

ReturnType

Point

Example

Geometrical Set.1\Point.5 = pointbetween (Geometrical Set.1\Point.1,
Geometrical Set.1\Point.2, 0.6, true)

pointoncurve

Creates a point on a curve.

Signature

pointoncurve(crv : Curve, pt : Point, distance : LENGTH, orientation : Boolean) : Point

Arguments

The point is to be created at a given curvilinear distance from a reference point specified in the second argument. The Boolean specified in the fourth argument allows you to reverse the direction in which the point is to be created. If the point specified in the second argument is not on the curve, the projection of this point onto the curve becomes the actual reference point.
NameInput / OutputRequired?TypeComment
crvInYesCurve-
ptInYesPoint-
distanceInYesLENGTH-
orientationInYesBoolean-

ReturnType

Point

Example

Geometrical Set.1\Point.6 = pointoncurve
(Geometrical Set.1\Spline.1, Geometrical Set.1\Point.5, 5mm, true)

pointoncurveRatio

Creates a point on a curve.

Signature

pointoncurveRatio(crv : Curve, pt : Point, ratio : Real, orientation : Boolean) : Point

Arguments

The location of the point to be created is determined by the real which is specified in the third argument. This real is the ratio of the distance [point to be created > reference point] to the distance [point to be created > curve extremity]. The Boolean specified in the fourth argument allows you to reverse the direction in which the point is to be created. If the point specified in the second argument is not on the curve, the projection of this point onto the curve becomes the actual reference point.
NameInput / OutputRequired?TypeComment
crvInYesCurve-
ptInYesPoint-
ratioInYesReal-
orientationInYesBoolean-

ReturnType

Point

Example

Geometrical Set.1\Point.7 = pointoncurveRatio
(Geometrical Set.1\Spline.1,Geometrical Set.1\Point.3, 0.4,true)

pointonplane

Creates a point on plane.

Signature

pointonplane(pln : Plane, pt : Point, dx : LENGTH, dy : LENGTH) : Point

Arguments

The location of the point to be created on the plane is determined by the coordinates (H,V system) passed in the third and fourth arguments. These values are specified with respect to the reference point passed in the second argument.
NameInput / OutputRequired?TypeComment
plnInYesPlane-
ptInYesPoint-
dxInYesLENGTH-
dyInYesLENGTH-

ReturnType

Point

Example

Geometrical Set.1\Point.8 = pointonplane 
(Geometrical Set.1\Plane.1,Geometrical Set.1\Point.1, 10mm,10mm)

pointonsurface

Creates a point on surface.

Signature

pointonsurface(sur : Surface, pt : Point, dir : Direction, dist : LENGTH) : Point

Arguments

The location of the point to be created on the surface is determined by its distance (fourth argument) to a reference point (second argument) along a direction (third argument).
NameInput / OutputRequired?TypeComment
surInYesSurface-
ptInYesPoint-
dirInYesDirection-
distInYesLENGTH-

ReturnType

Point

Example

Geometrical Set.1\Point.9 = pointonsurface
(Geometrical Set.1\Extrude.1,Geometrical Set.1\Point.3,
direction (Geometrical Set.1\Line.1),10mm)

pointtangent

Creates a tangency point between a curve and a direction.

Signature

pointtangent(Curve, Direction) : Point

Arguments

NameInput / OutputRequired?TypeComment
InYesCurve-
InYesDirection-

ReturnType

Point

Example

Geometrical Set.1\Point.11 = pointtangent
(Geometrical Set.1\Spline.1, direction (`yz plane`))