v1.1
|
|
Classes | |
class | Axis3D |
The axis is a vector which is attached to a fixed point. More... | |
class | Curve3D |
Curve in three-dimensional space. More... | |
class | Matrix3D |
The matrix of transformation in a three-dimensional space. More... | |
class | Placement3D |
Local coordinate system in three dimensional space. More... | |
class | Point3D |
Three-dimensional point. More... | |
class | Solid |
Solid body. More... | |
class | Vector3D |
Three-dimensional vector. More... | |
Topics | |
Operation parameters | |
Enumerations | |
enum | CoordinateSystem3D { Cartesian , Cylindrical , Spherical } |
Types of coordinate system in three dimensional space. More... | |
Functions | |
Curve3D | CreateLineSegment3D (Point3D startPoint, Point3D endPoint) |
Creates line segment. | |
Curve3D | CreateCircle3D (Point3D center, Vector3D normal, number radius) |
Creates circle. | |
Curve3D | CreateArc3DByThreePoints (Point3D startPoint, Point3D intermediatePoint, Point3D endPoint) |
Creates circular arc from startPoint to endPoint through intermediatePoint. | |
Curve3D | CreateArc3DByCenterStartEndPoints (Point3D centerPoint, Point3D startPoint, Point3D endPoint, bool clockwise) |
Creates circular arc by center, start and end points. | |
Curve3D | CreateEllipse3D (Point3D center, Vector3D normal, Vector3D majorVector, number majorRadius, number minorRadius) |
Creates ellipse. | |
Curve3D | CreateRectangle3D (Point3D center, Vector3D normal, Vector3D widthVector, number width, number height) |
Creates a rectangle as the closed composite curve of the four line segments in 3D space. | |
Curve3D | CreateEllipticalArc3D (Point3D center, Vector3D normal, Vector3D majorVector, number majorRadius, number minorRadius, Point3D startPoint, Point3D endPoint, boolean clockwise) |
Creates elliptical arc. | |
Curve3D | CreateParametricCurve3D (string xFunction, string yFunction, string zFunction, CoordinateSystem3D coordinateSystem, number tStart, number tEnd, Placement3D oPlacement) |
Creates a curve described by parametric functions in 3D space. | |
Curve3D | CreatePolyline3D (table points) |
Creates a composite curve from line segments by points. | |
Curve3D | CreateCompositeCurve3D (table curves) |
Creates a composite curve.The start point of every curve should be equal to the end point of previous one. | |
Axis3D | CreateXAxis3D () |
Creates X axis. | |
Axis3D | CreateYAxis3D () |
Creates Y axis. | |
Axis3D | CreateZAxis3D () |
Creates Z axis. | |
Solid | CreateBlock (number xSize, number ySize, number zSize, Placement3D oPlacement) |
Creates a rectangular parallelepiped. | |
Solid | CreateRightCircularCylinder (number radius, number height, Placement3D oPlacement) |
Creates a right circular cylinder. | |
Solid | CreateRightEllipticalCylinder (number radiusX, number radiusY, number height, Placement3D oPlacement) |
Creates a right elliptical cylinder. | |
Solid | CreateRightPrism (table points, number height, Placement3D oPlacement) |
Creates a right prism. | |
Solid | CreateSphere (number radius, Point3D oPoint) |
Creates a sphere. | |
Solid | CreateRightCircularCone (number radius, number height, Placement3D oPlacement) |
Creates a cone. | |
Solid | CreateRectangularPyramid (number width, number depth, number height, Placement3D oPlacement) |
Creates a rectangular pyramid in local coordinate system. | |
Solid | CreateSweptDiskSolid (number radius, number innerRadius, Curve3D path) |
Creates a swept disk solid. | |
Solid | Extrude (Curve2D contour, ExtrusionParameters parameters, Placement3D oPlacement) |
Creates an extrusion solid. | |
Solid | Loft (table profiles, table placements, LoftParameters oParameters) |
Creates lofted solid. | |
Solid | Evolve (Curve2D profile, Placement3D placement, Curve3D path, EvolutionParameters oParameters) |
Creates an evolution solid. | |
Solid | Revolve (Curve2D generatrixCurve, Placement3D initialCurvePlacement, Axis3D rotationAxis, RevolutionParameters parameters) |
Creates a revolution solid. The revolution body is built by rotating a flat generatrix curve around the axis by a given angle. | |
nil | FilletCorners3D (Curve3D curve, number radius) |
Rounds all corners of a composite curve. | |
nil | FilletCornerAfterSegment3D (Curve3D curve, number segmentIndex, number radius) |
Rounds the corner between the segment with index segmentIndex and next one. | |
Solid | Unite (Solid solid1, Solid solid2) |
Performs a solids boolean union operation. | |
Solid | Unite (table solids) |
Performs a solids boolean union operation. | |
Solid | Subtract (Solid solid1, Solid solid2) |
Performs a solids boolean subtracting operation. | |
Solid | Intersect (Solid solid1, Solid solid2) |
Performs a solids boolean intersection operation. | |
enum CoordinateSystem3D |
Curve3D CreateArc3DByCenterStartEndPoints | ( | Point3D | centerPoint, |
Point3D | startPoint, | ||
Point3D | endPoint, | ||
bool | clockwise ) |
Creates circular arc by center, start and end points.
centerPoint | The center of the arc. |
startPoint | The start point of the arc. It defines the radius. |
endPoint | The end point of the arc. |
clockwise | The direction of the arc. If it is true, then the direction is clockwise, if viewed against of the vector product of the vectors (startPoint - centerPoint) and (endPoint - centerPoint). |
Curve3D CreateArc3DByThreePoints | ( | Point3D | startPoint, |
Point3D | intermediatePoint, | ||
Point3D | endPoint ) |
Creates circular arc from startPoint to endPoint through intermediatePoint.
startPoint | The start point of the arc. |
intermediatePoint | The point lying on the arc. |
endPoint | The end point of the arc. |
Solid CreateBlock | ( | number | xSize, |
number | ySize, | ||
number | zSize, | ||
Placement3D | oPlacement ) |
Creates a rectangular parallelepiped.
The bottom center is located at the origin of the given coordinate system, edges are parallel to axes.
xSize | Length of edges parallel to the X axis. |
ySize | Length of edges parallel to the Y axis. |
zSize | Length of edges parallel to the Z axis. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
Creates circle.
center | A circle center. |
normal | A vector orthogonal to the circle plane. |
radius | Radius. |
Curve3D CreateCompositeCurve3D | ( | table | curves | ) |
Creates a composite curve.The start point of every curve should be equal to the end point of previous one.
curves | A set of curves (Curve3D ). |
Curve3D CreateEllipse3D | ( | Point3D | center, |
Vector3D | normal, | ||
Vector3D | majorVector, | ||
number | majorRadius, | ||
number | minorRadius ) |
Creates ellipse.
center | The center of the ellipse. |
normal | The vector orthogonal to the plane of the ellipse. |
majorVector | The vector co-directed with the first semi-axis. The second semi-axis is co-directed with the vector product normal*majorVector. |
majorRadius | The value of the first semi-axis. |
minorRadius | The value of the second semi-axis. |
Curve3D CreateEllipticalArc3D | ( | Point3D | center, |
Vector3D | normal, | ||
Vector3D | majorVector, | ||
number | majorRadius, | ||
number | minorRadius, | ||
Point3D | startPoint, | ||
Point3D | endPoint, | ||
boolean | clockwise ) |
Creates elliptical arc.
center | The center of the ellipse. |
normal | The vector orthogonal to the plane of the ellipse. |
majorVector | The vector co-directed with the first semi-axis. The second semi-axis is co-directed with the vector product normal*majorVector. |
majorRadius | The value of the first semi-axis. |
minorRadius | The value of the second semi-axis. |
startPoint | The start point of the arc. |
endPoint | The end point of the arc. |
clockwise | The arc direction. If equal to true, the arc directs clockwise if viewed against vector 'normal'. |
Creates line segment.
startPoint | The start point of the segment. |
endPoint | The end point of the segment. |
Curve3D CreateParametricCurve3D | ( | string | xFunction, |
string | yFunction, | ||
string | zFunction, | ||
CoordinateSystem3D | coordinateSystem, | ||
number | tStart, | ||
number | tEnd, | ||
Placement3D | oPlacement ) |
Creates a curve described by parametric functions in 3D space.
This function generates a curve described by parametric functions xFunction, yFunction and zFunction. The type of coordinate system is indicated by the parameter coordinateSystem. The initial value of the parameter tStart and the final value tEnd are used to define the parameter range of the curve.
The parametric functions xFunction(t), yFunction(t) and zFunction(t) are scalar functions that depend on a common parameter t and are defined as symbolic expressions.
For a cylindrical coordinate system, the functions xFunction, yFunction, zFunction describe the parameters p, φ, z, respectively. For a spherical coordinate system, the functions xFunction, yFunction, zFunction describe the parameters r, θ, φ, respectively.
xFunction | Expression describing the dependence of the X coordinate on the parameter. |
yFunction | Expression describing the dependence of the Y coordinate on the parameter. |
zFunction | Expression describing the dependence of the Z coordinate on the parameter. |
coordinateSystem | Coordinate system. |
tStart | Minimum parameter value. |
tEnd | Maximum parameter value. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
Curve3D CreatePolyline3D | ( | table | points | ) |
Creates a composite curve from line segments by points.
points | Set of points (Point3D ). |
Curve3D CreateRectangle3D | ( | Point3D | center, |
Vector3D | normal, | ||
Vector3D | widthVector, | ||
number | width, | ||
number | height ) |
Creates a rectangle as the closed composite curve of the four line segments in 3D space.
center | The center of the rectangle. |
normal | The vector orthogonal to the plane of the rectangle. |
widthVector | The vector parallel to the rectangle side of size 'width'. |
width | Width. |
height | Height. |
Solid CreateRectangularPyramid | ( | number | width, |
number | depth, | ||
number | height, | ||
Placement3D | oPlacement ) |
Creates a rectangular pyramid in local coordinate system.
The base center matches with the center of local coordinate system.
width | Base width along the local X axis. |
depth | Base depth along the local Y axis. |
height | Height. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
Solid CreateRightCircularCone | ( | number | radius, |
number | height, | ||
Placement3D | oPlacement ) |
Creates a cone.
Base center at the origin, the axis is the same as the Z axis.
radius | Base radius. |
height | Height. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
Solid CreateRightCircularCylinder | ( | number | radius, |
number | height, | ||
Placement3D | oPlacement ) |
Creates a right circular cylinder.
The bottom center is located at the origin of the given coordinate system, the axis is the same as the Z axis.
radius | Radius. |
height | Height. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
Solid CreateRightEllipticalCylinder | ( | number | radiusX, |
number | radiusY, | ||
number | height, | ||
Placement3D | oPlacement ) |
Creates a right elliptical cylinder.
The bottom center is located at the origin of the given coordinate system, the axis is the same as the Z axis.
radiusX | Radius along X axis. |
radiusY | Radius along Y axis. |
height | Height. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
Solid CreateRightPrism | ( | table | points, |
number | height, | ||
Placement3D | oPlacement ) |
Creates a right prism.
The bottom face is located on the XY-plane of the transferred coordinate system, the axis coincides with the Z axis.
points | A list of points (Point2D ) that defines the edges of the prism. |
height | Height. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
Creates a sphere.
radius | Radius. |
oPoint | [opt] Center of the sphere, the default origin. |
Creates a swept disk solid.
A swept disk solid is the solid produced by sweeping a circular disk along a three dimensional curve.
radius | The radius of the circular disk to be swept. |
innerRadius | The radius of a circular hole in the center of the disk. |
path | Guide curve. |
Solid Evolve | ( | Curve2D | profile, |
Placement3D | placement, | ||
Curve3D | path, | ||
EvolutionParameters | oParameters ) |
Creates an evolution solid.
The evolution solid is built by moving the generating curve along the guide curve.
profile | Generatrix curve. |
placement | Coordinate system (Placement3D ) in the XY plane of which the profile is located. |
path | Guide curve. |
oParameters | [opt] Evolution operation parameters. |
Solid Extrude | ( | Curve2D | contour, |
ExtrusionParameters | parameters, | ||
Placement3D | oPlacement ) |
Creates an extrusion solid.
The base lies in the XY-plane, solid depth, direction, draft angle are determined by operation parameters.
contour | Base contour. |
parameters | Extrusion operation parameters. |
oPlacement | [opt] The coordinate system in which the solid is created. If not specified, the global coordinate system is used. |
nil FilletCornerAfterSegment3D | ( | Curve3D | curve, |
number | segmentIndex, | ||
number | radius ) |
Rounds the corner between the segment with index segmentIndex
and next one.
curve | Composite curve with corners to fillet. |
segmentIndex | The index of the first segment of the contour, 1 <= segmentIndex < N-1 for open curve or 1 <= segmentIndex < N for closed curve, where N - the count of the segments in the composite curve. |
radius | Fillet radius. |
nil FilletCorners3D | ( | Curve3D | curve, |
number | radius ) |
Rounds all corners of a composite curve.
curve | Composite curve with corners to fillet. |
radius | Fillet radius. |
Performs a solids boolean intersection operation.
solid1 | The first operand of the operation. |
solid2 | The second operand of the operation. |
Solid Loft | ( | table | profiles, |
table | placements, | ||
LoftParameters | oParameters ) |
Creates lofted solid.
The surface of the body passes along all given plane curves. The size of the profiles
array must be equal to the size of the placements
array.
profiles | Array of 2D section curves (Curve2D ). |
placements | Array of coordinate systems (Placement3D ). The curves are located in the XY-planes. |
oParameters | [opt] Loft operation parameters. |
Solid Revolve | ( | Curve2D | generatrixCurve, |
Placement3D | initialCurvePlacement, | ||
Axis3D | rotationAxis, | ||
RevolutionParameters | parameters ) |
Creates a revolution solid. The revolution body is built by rotating a flat generatrix curve around the axis by a given angle.
generatrixCurve | A generatrix curve. |
initialCurvePlacement | A coordinate system. The generatrix curve lies in the XY-plane. |
rotationAxis | A rotation axis. |
parameters | Revolution operation parameters. |
Performs a solids boolean subtracting operation.
solid1 | The solid to subtract from. |
solid2 | The solid to be subtracted. |
Performs a solids boolean union operation.
solid1 | The first operand of the operation. |
solid2 | The second operand of the operation. |
Solid Unite | ( | table | solids | ) |
Performs a solids boolean union operation.
solids | Solids for the union operation. |