Line Constructors Functions

This function lets you define the formula for line constructors.

This page discusses:

axis

Creates an axis as a type of Line when the input is given as a surface.

Signature

axis(sur : Surface) : Line

Arguments

The input surface can be a revolved surface around an axis or a portion of the revolved surface around an axis.

NameInput / OutputRequired?TypeComment
surInYesSurfaceSwapped cells created through BRep selection mechanism cannot be used as an input.

ReturnType

Line

Example

Geometrical Set.2\Line.17 = axis(`Geometrical Set.1\Revolute.1`)

axis

Creates an axis as a type of Line when the input is given as a curve.

Signature

axis(crv : Curve) : Line

Arguments

The input curve can be a circle or a portion of a circle, an ellipse or a portion of an ellipse; or an oblong curve.

NameInput / OutputRequired?TypeComment
crvInYesCurveSwapped cells created through BRep selection mechanism cannot be used as an input.

ReturnType

Line

Example

Geometrical Set.2\Line.19 = axis(`Geometrical Set.1\Circle.2`)

binormal

Creates a line normal to a curve at a given point. The line is created in the plane which is orthogonal to the tangent vector.

Signature

binormal(crv : Curve, pt : Point) : Line

Arguments

NameInput / OutputRequired?TypeComment
crvInYesCurve-
ptInYesPoint-

ReturnType

Line

Example

Geometrical Set.1\Line.8 =
binormal (`Geometrical Set.1\Spline.1`, `Geometrical Set.1\Point.6`) 

inertiaAxis

Enables you to determine the inertia axis of a body.

Signature

inertiaAxis(rank : Integer [, Body, ..]) : Line

Arguments

NameInput / OutputRequired?TypeComment
rankInYesInteger-
InNoBody-

ReturnType

Line

Example

Geometrical Set.1\Line.9 = inertiaAxis (1 ,`PartBody`) 

line

Creates a line passing through a point and parallel to a direction. The third and fourth arguments are used to specify the start and end points. The last argument allows you to reverse the direction of the line.

Signature

line(pt : Point, dir : Direction, start : LENGTH, end : LENGTH, orientation : Boolean) : Line

Arguments

NameInput / OutputRequired?TypeComment
ptInYesPoint-
dirInYesDirection-
startInYesLENGTH-
endInYesLENGTH-
orientationInYesBoolean-

ReturnType

Line

Example

Geometrical Set.1\Line.13 = line 
(`Geometrical Set.1\Point.2` , direction (`zx plane`), 0mm, 20mm, false)

line

Creates a line from two points.

Signature

line(Point, Point) : Line

Arguments

NameInput / OutputRequired?TypeComment
InYesPoint-
InYesPoint-

ReturnType

Line

Example

Geometrical Set.\Line_Point_Point = line 
(`Geometrical Set.1\Point.1`, `Geometrical Set.1\Point.2`) 

lineangle

Creates a line passing through a point, tangent to a surface and making a given angle with a curve. When the geodesic argument is set to true, a geodesic line is created (projected) onto the surface.

Signature

lineangle(crv : Curve, sur : Surface, pt : Point, geodesic : Boolean, start : LENGTH, end : LENGTH, angle : ANGLE, orientation : Boolean) : Line

Arguments

NameInput / OutputRequired?TypeComment
crvInYesCurve-
surInYesSurface-
ptInYesPoint-
geodesicInYesBoolean-
startInYesLENGTH-
endInYesLENGTH-
angleInYesANGLE-
orientationInYesBoolean-

ReturnType

Line

Example

Geometrical Set.1\Line.1 = lineangle (Geometrical Set.1\Spline.1 ,
Geometrical Set.1\Extrude.1 , Geometrical Set.1\Point.4, 
false, 0mm, 50mm, 80deg, false)

linenormal

Creates a line normal to a surface at a given point.

Signature

linenormal(sur : Surface, pt : Point, start : LENGTH, end : LENGTH, orientation : Boolean) : Line

Arguments

NameInput / OutputRequired?TypeComment
surInYesSurface-
ptInYesPoint-
startInYesLENGTH-
endInYesLENGTH-
orientationInYesBoolean-

ReturnType

Line

Example

linenormal = linenormal (`Geometrical Set.1\Extrude.1`,
`Geometrical Set.1\Point.2` ,10mm,16mm, true) 

linetangent

Creates a line tangent to a curve at a given point.

Signature

linetangent(crv : Curve, pt : Point, start : LENGTH, end : LENGTH, orientation : Boolean) : Line

Arguments

NameInput / OutputRequired?TypeComment
crvInYesCurve-
ptInYesPoint-
startInYesLENGTH-
endInYesLENGTH-
orientationInYesBoolean-

ReturnType

Line

Example

Geometrical Set.1\Line.11 = linetangent 
(`Geometrical Set.1\Spline.1`, `Geometrical Set.1\Point.6`,0mm, 30mm, true)

mainnormal

Creates a line normal to a curve at a given point. The line is created in the plane which contains the tangent vector.

Signature

mainnormal(crv : Curve, pt : Point) : Line

Arguments

NameInput / OutputRequired?TypeComment
crvInYesCurve-
ptInYesPoint-

ReturnType

Line

Example

Geometrical Set.1\Line.10 = mainnormal 
(`Geometrical Set.1\Spline.1`, `Geometrical Set.1\Point.6`)