Documentation

Support

Asset Transformer SDK


User Manual

Python API

C# API

Changelog

Discussions

Asset Transformer SDK


CAD

Python API functions
Read time 102 minutesLast updated a month ago

configureFunctionLogger

cad.configureFunctionLogger(functionName, enableFunction, enableParameters, enableExecutionTime)
Parameters

Type

Name

Description

StringfunctionName
BooleanenableFunction
BooleanenableParameters
BooleanenableExecutionTime

getPrecision

Get the CAD precision.
cad.getPrecision() -> geom.Distance
Returns

Type

Name

Description

DistanceprecisionThe current precision.

getUnitLength

Get the CAD unity length property.
cad.getUnitLength() -> geom.Distance
Returns

Type

Name

Description

DistanceprecisionThe current unit length.

setUnitLength

Set the CAD unity length property.
cad.setUnitLength(precision=0.02)
Parameters

Type

Name

Description

DistanceprecisionUnit length.

Boolean Operators

solidIntersection

Perform boolean operation intersection on two bodies (A ^ B).
cad.solidIntersection(A, B) -> cad.BodyList
Parameters

Type

Name

Description

BodyAThe first body.
BodyBThe second body.
Returns

Type

Name

Description

BodyListresultList of resulting bodies.
See also:

solidSubtraction

Perform boolean operation subtraction on two bodies (A - B).
cad.solidSubtraction(A, B) -> cad.BodyList
Parameters

Type

Name

Description

BodyAThe first body.
BodyBThe second body.
Returns

Type

Name

Description

BodyListresultList of resulting bodies.
See also:

solidUnion

Perform boolean operation union on two bodies (A + B).
cad.solidUnion(A, B) -> cad.BodyList
Parameters

Type

Name

Description

BodyAThe first body.
BodyBThe second body.
Returns

Type

Name

Description

BodyListresultList of resulting bodies.
See also:

curves

createBezierCurve

Create a Bezier curve.
cad.createBezierCurve(poles) -> cad.Curve
Parameters

Type

Name

Description

Point3ListpolesPoles list.
Returns

Type

Name

Description

CurveBezierCurveBezier curve.
See also:

createCircleCurve

Create a new circle.
cad.createCircleCurve(radius, matrix=geom.IdentityMatrix4) -> cad.Curve
Parameters

Type

Name

Description

DistanceradiusCircle radius.
Matrix4matrixTransformation matrix.
Returns

Type

Name

Description

CurvecircleCurveGenerated circle curve.
See also:

createCompositeCurve

Create a composite curve from a list of limited curves.
cad.createCompositeCurve(CurveList) -> cad.Curve
Parameters

Type

Name

Description

CurveListCurveListList of limited curves.
Returns

Type

Name

Description

CurvecompositeCurveComposite curve created from the list of limited curves.
See also:

createCosinusCurve

Create a cosinus curve.
cad.createCosinusCurve(Amplitude, Offset, Period, matrix) -> cad.Curve
Parameters

Type

Name

Description

DistanceAmplitudeCosinus amplitude.
DistanceOffsetCosinus offset.
DistancePeriodCosinus period.
Matrix4matrixTransformation matrix.
Returns

Type

Name

Description

CurvecosinusCurveCosinus curve.
See also:

createEllipseCurve

Create an ellipse curve.
cad.createEllipseCurve(URadius, VRadius, matrix=geom.IdentityMatrix4) -> cad.Curve
Parameters

Type

Name

Description

DistanceURadiusEllipse radius in u direction.
DistanceVRadiusEllipse radius in v direction.
Matrix4matrixTransformation matrix.
Returns

Type

Name

Description

CurveellipseCurveEllipse curve.
See also:

createHelixCurve

Create an helix curve.
cad.createHelixCurve(radius, pitch, matrix=geom.IdentityMatrix4, trigonometrixOrientation=True) -> cad.Curve
Parameters

Type

Name

Description

DistanceradiusRadius of the helix.
DistancepitchHeight of one revolution.
Matrix4matrixTransformation matrix.
BooleantrigonometrixOrientationOrientation of the rotation.
Returns

Type

Name

Description

CurvehelixCurveHelix curve.
See also:

createHermiteCurve

Create a Hermite Curve.
cad.createHermiteCurve(FirstPoint, FirstTangent, SecondPoint, SecondTangent) -> cad.Curve
Parameters

Type

Name

Description

Point3FirstPointStarting point of the curve.
Point3FirstTangentTangent of the starting point.
Point3SecondPointEnding point of the curve.
Point3SecondTangentTangent of the ending point.
Returns

Type

Name

Description

CurveHermiteCurveHermite curve.
See also:

createHyperbolaCurve

Create an hyperBola curve.
cad.createHyperbolaCurve(URadius, VRadius, matrix=geom.IdentityMatrix4) -> cad.Curve
Parameters

Type

Name

Description

DoubleURadiusHyperbola radius in u direction.
DoubleVRadiusHyperbola radius in v direction.
Matrix4matrixTransformation matrix.
Returns

Type

Name

Description

CurveparabolaCurveHyperbola curve.
See also:

createIntersectionCurve

Create a Intersection Curve.
cad.createIntersectionCurve(firstSurface, secondSurface, chart, minBounds, maxBounds) -> cad.Curve
Parameters

Type

Name

Description

SurfacefirstSurfaceFirst surface of the intersection curve.
SurfacesecondSurfaceSecond surface of the intersection curve.
PolylineCurvechartDirection curve of the intersection curve.
DoubleminBoundsMinimum value of the bounds of the intersection curve.
DoublemaxBoundsMaximum value of the bounds of the intersection curve.
Returns

Type

Name

Description

CurveIntersectionCurveIntersection curve.
See also:

createLineCurve

Create a Line Curve.
cad.createLineCurve(OriginPt, DirectionPt) -> cad.Curve
Parameters

Type

Name

Description

Point3OriginPtOrinin point of the line curve.
Point3DirectionPtDirection vector of the line curve.
Returns

Type

Name

Description

CurveLineCurveLine curve.
See also:

createNURBSCurve

Create a NURBS curve.
cad.createNURBSCurve(degree, knots, poles, weights=None) -> cad.Curve
Parameters

Type

Name

Description

IntdegreeDegree of the curve.
DoubleListknotsKnots of the curve.
Point3ListpolesPoles list.
DoubleListweightsWeight list.
Returns

Type

Name

Description

CurveNURBSCurveNURBS curve.
See also:

createParabolaCurve

Create an parabola curve.
cad.createParabolaCurve(focalLength, matrix=geom.IdentityMatrix4) -> cad.Curve
Parameters

Type

Name

Description

DoublefocalLengthFocal lecngth of the parabola.
Matrix4matrixTransformation matrix.
Returns

Type

Name

Description

CurveparabolaCurveParabola curve.
See also:

createPolylineCurve

Create a Polyline curve.
cad.createPolylineCurve(points, parameters=None) -> cad.Curve
Parameters

Type

Name

Description

Point3ListpointsPoints of polyline curve.
DoubleListparametersParams of polyline curve.
Returns

Type

Name

Description

CurvepolylineCurvePolyline curve.
See also:

createSegmentCurve

Create a segment curve from two given points.
cad.createSegmentCurve(firstPoint, secondPoint) -> cad.Curve
Parameters

Type

Name

Description

Point3firstPointFirst point.
Point3secondPointSecond point.
Returns

Type

Name

Description

CurvesegmentCurveSegment curve created from the two given points.
See also:

createSurfacicCurve

Create a curve from a surface.
cad.createSurfacicCurve(surface, curve2D) -> cad.Curve
Parameters

Type

Name

Description

SurfacesurfaceSurface to bound.
Curvecurve2DCurve to project.
Returns

Type

Name

Description

CurvesurfacicCurveCurve projected on given surface.
See also:

createTransformedCurve

Create a curve from a surface.
cad.createTransformedCurve(curve, matrix=geom.IdentityMatrix4) -> cad.Curve
Parameters

Type

Name

Description

CurvecurveCurve to transform.
Matrix4matrixMatrix of the transformation.
Returns

Type

Name

Description

CurvetransformedCurveCurve transformed by the given matrix.
See also:

invertCurve

Invert a curve parametricaly.
cad.invertCurve(curve, precision) -> cad.Curve
Parameters

Type

Name

Description

CurvecurveThe curve to invert.
DoubleprecisionThe precision used to invert the curve.
Returns

Type

Name

Description

CurveinvertedCurveThe inverted curve.
See also:

extrusion creation

createBoundedLinearExtrusion

Create a linear extrusion body.
cad.createBoundedLinearExtrusion(direction, planeOrigin, planeNormal, profileBase, startingNormal, boundaryType=0, profileEnd=None) -> cad.CADEntity
Parameters

Type

Name

Description

Vector3directionThe profile curves will be extruded in this direction.
Point3planeOriginThe origin of the plane that bound the extrusion.
Vector3planeNormalThe normal of the plane that bound the extrusion.
ProfileBaseprofileBaseProfile loops to extrude.
Vector3startingNormalThe normal of the plane in which all starting profile lie on.
ExtrusionBoundaryTypeboundaryTypeIf the profile curves define an area or not.
ProfileBaseprofileEndThe end profile of the extrusion.
Returns

Type

Name

Description

CADEntityboundedLinearExtrusionThe created body or shell.
See also:

createCurveExtrusion

Create a curve extrusion body.
cad.createCurveExtrusion(curve, profileBase, startingNormal, boundaryType=0, profileEnd=None) -> cad.CADEntity
Parameters

Type

Name

Description

CurvecurveThe profile curves will be extruded along this curve.
ProfileBaseprofileBaseProfile loops to extrude.
Vector3startingNormalThe normal of the plane in which all starting profile lie one.
ExtrusionBoundaryTypeboundaryTypeIf the profile curves define an area or not.
ProfileBaseprofileEndThe end profile of the extrusion.
Returns

Type

Name

Description

CADEntitycurveExtrusionThe created body or shell.
See also:

createLinearExtrusion

Create a linear extrusion body.
cad.createLinearExtrusion(direction, depth, profileBase, startingNormal, boundaryType=0, profileEnd=None) -> cad.CADEntity
Parameters

Type

Name

Description

Vector3directionThe profile curves will be extruded in this direction.
DoubledepthThe extrusion will stop at the defined depth.
ProfileBaseprofileBaseProfile loops to extrude.
Vector3startingNormalThe normal of the plane in which all starting profile lie on.
ExtrusionBoundaryTypeboundaryTypeIf the profile curves define an area or not.
ProfileBaseprofileEndThe end profile of the extrusion.
Returns

Type

Name

Description

CADEntitylinearExtrusionThe created body or shell.
See also:

createMultiExtrusion

Create a linear extrusion body.
cad.createMultiExtrusion(profileBaseList, profileExtrusionList, boundaryType=0) -> cad.CADEntity
Parameters

Type

Name

Description

ProfileBaseListprofileBaseListProfile loops to be extruded.
CurveListListprofileExtrusionListExtrusion profiles.
ExtrusionBoundaryTypeboundaryTypeIf the profile curves define an area or not.
Returns

Type

Name

Description

CADEntitymultiLinearExtrusionThe created body or shell.
See also:

createRevolveExtrusion

Create a revolved extrusion body.
cad.createRevolveExtrusion(center, axis, angle, profileBase, startingNormal, boundaryType=0, profileEnd=None) -> cad.CADEntity
Parameters

Type

Name

Description

Point3centerThe center of revolution.
Vector3axisThe profile curves will be revolved around this axis.
DoubleangleThe revolution will stop at the defined angle.
ProfileBaseprofileBaseProfile loops to revolve.
Vector3startingNormalThe normal of the plane in which all starting profile lie on.
ExtrusionBoundaryTypeboundaryTypeIf the profile curves define an area or not.
ProfileBaseprofileEndThe end profile of the extrusion.
Returns

Type

Name

Description

CADEntityrevolvedExtrusionThe created body or shell.
See also:

material

getFaceMaterial

Get the material on a face.
cad.getFaceMaterial(face) -> material.Material
Parameters

Type

Name

Description

FacefaceThe face.
Returns

Type

Name

Description

MaterialmaterialThe material.
See also:

setFaceMaterial

Set the material on a face.
cad.setFaceMaterial(face, material)
Parameters

Type

Name

Description

FacefaceThe face.
MaterialmaterialThe material.
See also:

model management

addBodyToModel

Add a body to the model.
cad.addBodyToModel(body, model)
Parameters

Type

Name

Description

BodybodyBody added to the model.
ModelmodelModel.
See also:

addEdgeToModel

Add an edge to the model.
cad.addEdgeToModel(edge, model)
Parameters

Type

Name

Description

EdgeedgeEdge added to the model.
ModelmodelModel.
See also:

addOpenShellToModel

Add an open shell to the model.
cad.addOpenShellToModel(shell, model)
Parameters

Type

Name

Description

OpenShellshellOpen shell added to the model.
ModelmodelModel.
See also:

addVertexToModel

Add a vertex to the model.
cad.addVertexToModel(vtx, model)
Parameters

Type

Name

Description

VertexvtxVertex added to the model.
ModelmodelModel.
See also:

buildFaces

Build faces from a surface and a set of loop.
cad.buildFaces(surface, loopList) -> cad.FaceList, cad.SplittedEdgeList
Parameters

Type

Name

Description

SurfacesurfaceSurface used to build the faces.
LoopListloopListList of Loops used to build the faces.
Returns

Type

Name

Description

FaceListfacesThe created faces.
SplittedEdgeListsplittingInfoMap between the old edges and the new ones.
See also:

createModel

Create a new model.
cad.createModel(precision=-1) -> cad.Model
Parameters

Type

Name

Description

DistanceprecisionCAD precision for this model.
Returns

Type

Name

Description

ModelmodelThe created model.
See also:

endThreadBrepSession

Create a new BrepSession on current thread.
cad.endThreadBrepSession()
See also:

getAllModelFaces

Get all the face of a model recursively.
cad.getAllModelFaces(model) -> cad.FaceList
Parameters

Type

Name

Description

ModelmodelModel.
Returns

Type

Name

Description

FaceListfacesList of faces in the given model.
See also:

getModelBodies

Get the list of bodies contained in a model.
cad.getModelBodies(model) -> cad.BodyList
Parameters

Type

Name

Description

ModelmodelModel.
Returns

Type

Name

Description

BodyListbodiesList of bodies contained in the given model.
See also:

getModelBoundaries

Get boundary edges of a model grouped by cycles.
cad.getModelBoundaries(model) -> cad.EdgeListList
Parameters

Type

Name

Description

ModelmodelModel.
Returns

Type

Name

Description

EdgeListListboundariesList of boundary edges grouped by cycles in the given model.
See also:

getModelEdges

Get the list of free edges contained in a model.
cad.getModelEdges(model) -> cad.EdgeList
Parameters

Type

Name

Description

ModelmodelModel.
Returns

Type

Name

Description

EdgeListedgesList of edges contained in the given model.
See also:

getModelOpenShells

Get the list of open shells contained in a model.
cad.getModelOpenShells(model) -> cad.OpenShellList
Parameters

Type

Name

Description

ModelmodelModel.
Returns

Type

Name

Description

OpenShellListshellsList of open shells contained in the given model.
See also:

getModelPrecision

Get the precision used in a model.
cad.getModelPrecision(model) -> core.Double
Parameters

Type

Name

Description

ModelmodelModel.
Returns

Type

Name

Description

DoubleprecisionPrecision value.
See also:

getModelVertices

Get the list of free vertices contained in a model.
cad.getModelVertices(model) -> cad.VertexList
Parameters

Type

Name

Description

ModelmodelModel.
Returns

Type

Name

Description

VertexListverticesList of vertices contained in the given model.
See also:

getReferencers

Returns the entities referencing a given CAD entity.
cad.getReferencers(entity) -> core.EntityList
Parameters

Type

Name

Description

CADEntityentityCAD entity to get the referencers.
Returns

Type

Name

Description

EntityListreferencersList of CAD entities referencing the given entity.
See also:

startThreadBrepSession

Create a new BrepSession on current thread.
cad.startThreadBrepSession(precision)
Parameters

Type

Name

Description

DistanceprecisionCAD precision for this model.
See also:

primitives

createBRepCone

Creates a BRep Cone whose axis is the Z axis centered on O.
cad.createBRepCone(radius, height, matrix=geom.IdentityMatrix4) -> cad.Body
Parameters

Type

Name

Description

DoubleradiusCone radius.
DoubleheightCone height.
Matrix4matrixPositionning matrix of the Cone.
Returns

Type

Name

Description

BodybodyThe created Body.
See also:

createBRepCube

Creates a BRep Cube.
cad.createBRepCube(size, matrix=geom.IdentityMatrix4) -> cad.Body
Parameters

Type

Name

Description

DoublesizeSide length.
Matrix4matrixPositionning matrix of the Cube.
Returns

Type

Name

Description

BodybodyThe created Body.
See also:

createBRepCylinder

Creates a BRep Cylinder aligned on the Z axis centered on O.
cad.createBRepCylinder(radius, length, matrix=geom.IdentityMatrix4) -> cad.Body
Parameters

Type

Name

Description

DoubleradiusCylinder radius.
DoublelengthCylinder length.
Matrix4matrixPositionning matrix of the Cylinder.
Returns

Type

Name

Description

BodybodyThe created Body.
See also:

createBRepPlane

Creates a BRep Plane whose normal is the Z axis centered on O.
cad.createBRepPlane(length, width, matrix=geom.IdentityMatrix4) -> cad.Body
Parameters

Type

Name

Description

DoublelengthPlane length (X axis).
DoublewidthPlane width (Y axis).
Matrix4matrixPositionning matrix of the Plane.
Returns

Type

Name

Description

BodybodyThe created Body.
See also:

createBRepSphere

Creates a BRep Sphere centered on O and whose singularities are on the Z axis.
cad.createBRepSphere(radius, matrix=geom.IdentityMatrix4) -> cad.Body
Parameters

Type

Name

Description

DoubleradiusSphere radius.
Matrix4matrixPositionning matrix of the Sphere.
Returns

Type

Name

Description

BodybodyThe created Body.
See also:

createBRepTorus

Creates a BRep Torus whose axis is the Z axis centered on O.
cad.createBRepTorus(majorRadius, minorRadius, matrix=geom.IdentityMatrix4) -> cad.Body
Parameters

Type

Name

Description

DoublemajorRadiusMajor radius.
DoubleminorRadiusMinor radius.
Matrix4matrixPositionning matrix of the Torus.
Returns

Type

Name

Description

BodybodyThe created Body.
See also:

structure access

areCurvesEquals

Check if two curve are equals by comparing each attribute, one by one. The two curves need to be of the same type; otherwise, it returns false by default.
cad.areCurvesEquals(curve1, curve2) -> core.Boolean
Parameters

Type

Name

Description

Curvecurve1A curve to be compare.
Curvecurve2A curve to be compare.
Returns

Type

Name

Description

BooleanisEqualThe result of the comparison.
See also:

evalCurvatureOnCurve

Evaluate curvature on a curve.
cad.evalCurvatureOnCurve(curve, parameter) -> core.Double
Parameters

Type

Name

Description

CurvecurveThe curve.
DoubleparameterParameter to evaluate.
Returns

Type

Name

Description

DoublecurvatureCurvature on curve at parameter.
See also:

evalCurvatureOnSurface

Evaluate main curvatures on a surface.
cad.evalCurvatureOnSurface(surface, parameter) -> geom.Curvatures
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Point2parameterParameter to evaluate.
Returns

Type

Name

Description

CurvaturescurvaturesMain curvatures on surface at parameter.
See also:

evalOnCurve

Evaluate a point and derivatives on a curve.
cad.evalOnCurve(curve, parameter, derivation=0) -> geom.Point3, geom.Point3, geom.Point3
Parameters

Type

Name

Description

CurvecurveThe curve.
DoubleparameterParameter to evaluate.
IntderivationDerivation level (0,1,2).
Returns

Type

Name

Description

Point3d0D0.
Point3duDu.
Point3d2uD2u.
See also:

evalOnSurface

Evaluate a point and derivatives on a surface.
cad.evalOnSurface(surface, parameter, derivation=0) -> geom.Point3, geom.Point3, geom.Point3, geom.Point3, geom.Point3, geom.Point3
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Point2parameterParameter to evaluate.
IntderivationDerivation level (0,1,2).
Returns

Type

Name

Description

Point3d0D0.
Point3duDu.
Point3dvDv.
Point3d2uD2u.
Point3d2vD2v.
Point3duvDuv.
See also:

getBodyClosedShells

Get all closedShells contain in the body.
cad.getBodyClosedShells(body) -> cad.ClosedShellList
Parameters

Type

Name

Description

BodybodyThe body.
Returns

Type

Name

Description

ClosedShellListclosedShellsThe closedShells contain within the body.
See also:

getCircleCurveDefinition

Get all parameters contained in the circleCurve.
cad.getCircleCurveDefinition(circleCurve) -> core.Double, geom.Matrix4
Parameters

Type

Name

Description

CircleCurvecircleCurveThe circleCurve.
Returns

Type

Name

Description

DoubleradiusThe radius of the circle.
Matrix4matrixThe matrix transformation of the circle.
See also:

getClosedShellOrientedFaces

Get all orienteFaces contain in the closedShell.
cad.getClosedShellOrientedFaces(closedShell) -> cad.OrientedFaceList
Parameters

Type

Name

Description

ClosedShellclosedShellThe closedShell.
Returns

Type

Name

Description

OrientedFaceListorientedFacesThe orientedFaces contain within the closedShell.
See also:

getCoEdgeDefinition

Get all parameters contained in the coEdge.
cad.getCoEdgeDefinition(coEdge) -> cad.Edge, geom.Orientation, cad.Loop, cad.Surface, cad.Curve
Parameters

Type

Name

Description

CoEdgecoEdgeThe coEdge.
Returns

Type

Name

Description

EdgeedgeThe edge of the coEdge.
OrientationedgeOrientationOrientation of the edge.
LooploopThe loop containing the coEdge.
SurfacesurfaceThe surface of the coEdge.
CurveparametricCurveThe parametricCurve of the coEdge.
See also:

getCompositeCurveDefinition

Get all parameters contained in the compositeCurve.
cad.getCompositeCurveDefinition(compositeCurve) -> cad.CurveList, core.DoubleList
Parameters

Type

Name

Description

CompositeCurvecompositeCurveThe compositeCurve.
Returns

Type

Name

Description

CurveListcurvesThe curves of the compositeCurve.
DoubleListparametersThe parameters of the compositeCurve.
See also:

getConeSurfaceDefinition

Get all parameters contained in the coneSurface.
cad.getConeSurfaceDefinition(coneSurface) -> core.Double, core.Double, geom.Matrix4
Parameters

Type

Name

Description

ConeSurfaceconeSurfaceThe coneSurface.
Returns

Type

Name

Description

DoubleradiusThe radius of the coneSurface.
DoublesemiAngleThe semiAngle of coneSurface.
Matrix4matrixThe transformation matrix of coneSurface.
See also:

getCurveExtrusionSurfaceDefinition

Get all parameters contained in the curveExtrusionSurface.
cad.getCurveExtrusionSurfaceDefinition(curveExtrusionSurface) -> cad.Curve, cad.Curve, cad.Surface
Parameters

Type

Name

Description

CurveExtrusionSurfacecurveExtrusionSurfaceThe curveExtrusionSurface.
Returns

Type

Name

Description

CurvegeneratrixCurveThe generatrix curve of the curveExtrusionSurface.
CurvedirectrixCurveThe directrix curve of the curveExtrusionSurface.
SurfacesurfaceReferenceThe reference surface of curveExtrusionSurface.
See also:

getCurveLength

Returns the length of the curve.
cad.getCurveLength(curve) -> core.Double
Parameters

Type

Name

Description

CurvecurveThe curve.
Returns

Type

Name

Description

DoublelengthThe length of the edge.
See also:

getCurveLimits

Get the parametric space limits of a curve.
cad.getCurveLimits(curve) -> cad.Bounds1D
Parameters

Type

Name

Description

CurvecurveThe curve.
Returns

Type

Name

Description

Bounds1DlimitsCurve limits.
See also:

getCylinderSurfaceDefinition

Get all parameters contained in the cylinderSurface.
cad.getCylinderSurfaceDefinition(cylinderSurface) -> core.Double, geom.Matrix4
Parameters

Type

Name

Description

CylinderSurfacecylinderSurfaceThe cylinderSurface.
Returns

Type

Name

Description

DoubleradiusThe radius of the cylinderSurface.
Matrix4matrixThe transformation matrix of cylinderSurface.
See also:

getEdgeDefinition

Get all parameters contained in the edge.
cad.getEdgeDefinition(edge) -> cad.Vertex, cad.Vertex, cad.Curve, cad.Bounds1D
Parameters

Type

Name

Description

EdgeedgeThe edge.
Returns

Type

Name

Description

Vertexvertex1The first vertex of the edge.
Vertexvertex2The second vertex of the edge.
CurvecurveThe curve of the edge.
Bounds1DboundsThe bounds of the edge.
See also:

getEdgeLength

Returns the length of the edge.
cad.getEdgeLength(edge) -> core.Double
Parameters

Type

Name

Description

EdgeedgeThe edge.
Returns

Type

Name

Description

DoublelengthThe length of the edge.
See also:

getEdgeMaterial

Get the material of the edge, if any.
cad.getEdgeMaterial(edge) -> material.Material
Parameters

Type

Name

Description

Edgeedge
Returns

Type

Name

Description

MaterialmaterialThe material applied to the edge, 0 if no material.
See also:

getEllipseCurveDefinition

Get all parameters contained in the ellipseCurve.
cad.getEllipseCurveDefinition(ellipseCurve) -> core.Double, core.Double, geom.Matrix4
Parameters

Type

Name

Description

EllipseCurveellipseCurveThe ellipseCurve.
Returns

Type

Name

Description

Doubleradius1The radius on x of the ellipse.
Doubleradius2The radius on y of the ellipse.
Matrix4matrixThe transformation matrix of the ellipse.
See also:

getEllipticConeSurfaceDefinition

Get all parameters contained in the ellipticConeSurface.
cad.getEllipticConeSurfaceDefinition(ellipticConeSurface) -> core.Double, core.Double, core.Double, geom.Matrix4
Parameters

Type

Name

Description

EllipticConeSurfaceellipticConeSurfaceThe EllipticConeSurface.
Returns

Type

Name

Description

Doubleradius1The radius on X of the coneSurface.
Doubleradius2The radius on Y of the coneSurface.
DoublesemiAngleThe semiAngle of coneSurface.
Matrix4matrixThe transformation matrix of coneSurface.
See also:

getFaceDefinition

Get all parameters contain in the face.
cad.getFaceDefinition(face) -> cad.Surface, cad.LoopList, geom.Orientation, cad.Bounds2D
Parameters

Type

Name

Description

FacefaceThe face.
Returns

Type

Name

Description

SurfacesurfaceThe surface contain within the face.
LoopListloopsThe loops contain within the face.
OrientationorientationRelative orientation of the surface.
Bounds2DlimitsFace limits on surfaces.
See also:

getFaceParametricBoundaries

Get parametric definition of each face loop.
cad.getFaceParametricBoundaries(face) -> geom.Point2ListList
Parameters

Type

Name

Description

FacefaceThe face.
Returns

Type

Name

Description

Point2ListListboundariesThe parametric boundaries.
See also:

getHelixCurveDefinition

Get all parameters contained in the helixCurve.
cad.getHelixCurveDefinition(helixCurve) -> core.Double, geom.Matrix4, core.Boolean
Parameters

Type

Name

Description

HelixCurvehelixCurveThe helixCurve.
Returns

Type

Name

Description

DoubleradiusThe radius of the helixCurve.
Matrix4matrixThe matrix of the helixCurve.
BooleantrigonometricOrientationThe trigonometricOrientation of the helixCurve.
See also:

getHermiteCurveDefinition

Get all parameters contained in the hermiteCurve.
cad.getHermiteCurveDefinition(hermiteCurve) -> geom.Point3, geom.Point3, geom.Point3, geom.Point3
Parameters

Type

Name

Description

HermiteCurvehermiteCurveThe HermiteCurve.
Returns

Type

Name

Description

Point3firstPointThe first point of the hermiteCurve.
Point3secondPointThe second point of the hermiteCurve.
Point3firstTangentThe first tangent of the hermiteCurve.
Point3secondTangentThe second tangent of the hermiteCurve.
See also:

getHyperbolaCurveDefinition

Get all parameters contained in the hyperbolaCurve.
cad.getHyperbolaCurveDefinition(hyperbolaCurve) -> core.Double, core.Double, geom.Matrix4
Parameters

Type

Name

Description

HyperbolaCurvehyperbolaCurveThe hyperbolaCurve.
Returns

Type

Name

Description

Doubleradius1The radius on x of the hyperbola.
Doubleradius2The radius on y of the hyperbola.
Matrix4matrixThe transformation matrix of the hyperbola.
See also:

getIntersectionCurveDefinition

Get all parameters contained in the intersectionCurve.
cad.getIntersectionCurveDefinition(intersectionCurve) -> cad.Surface, cad.Surface, cad.PolylineCurve, cad.Bounds1D
Parameters

Type

Name

Description

IntersectionCurveintersectionCurveThe intersectionCurve.
Returns

Type

Name

Description

Surfacesurface1The first surface of the intersectionCurve.
Surfacesurface2The second surface of the intersectionCurve.
PolylineCurvechartThe chart of the intersectionCurve.
Bounds1DboundsThe boudns of the intersectionCurve.
See also:

getLineCurveDefinition

Get all parameters contain in the lineCurve.
cad.getLineCurveDefinition(lineCurve) -> geom.Point3, geom.Point3
Parameters

Type

Name

Description

LineCurvelineCurveThe lineCurve.
Returns

Type

Name

Description

Point3originThe origin of the lineCurve.
Point3directionThe direction of the lineCurve.
See also:

getLoopCoEdges

Get all coEdges contain in the loop.
cad.getLoopCoEdges(loop) -> cad.CoEdgeList
Parameters

Type

Name

Description

LooploopThe loop.
Returns

Type

Name

Description

CoEdgeListcoEdgesThe coEdges contain within the loop.
See also:

getNURBSCurveDefinition

Get all parameters contained in the nurbsCurve.
cad.getNURBSCurveDefinition(nurbsCurve) -> core.Int, core.DoubleList, geom.Point3List, core.DoubleList
Parameters

Type

Name

Description

NURBSCurvenurbsCurveThe nurbsCurve.
Returns

Type

Name

Description

IntdegreeThe degree of the nurbsCurve.
DoubleListknotsThe knots of the nurbsCurve.
Point3ListpolesThe poles of the nurbsCurve.
DoubleListweightsThe weights of the poles of the nurbsCurve.
See also:

getNURBSSurfaceDefinition

Get all parameters contained in the nurbsSurface.
cad.getNURBSSurfaceDefinition(nurbsSurface) -> core.Int, core.Int, core.DoubleList, core.DoubleList, geom.Point3ListList, core.DoubleListList
Parameters

Type

Name

Description

NURBSSurfacenurbsSurfaceThe nurbsSurface.
Returns

Type

Name

Description

IntdegreeUThe degree on U of the nurbsSurface.
IntdegreeVThe degree on V of the nurbsSurface.
DoubleListknotsUThe knots on U of the nurbsSurface.
DoubleListknotsVThe knots on V of the nurbsSurface.
Point3ListListpolesThe poles of nurbsSurface.
DoubleListListweightsThe weights of the poles of nurbsSurface.
See also:

getOffsetCurveDefinition

Get all parameters contained in the offsetCurve.
cad.getOffsetCurveDefinition(offsetCurve) -> cad.Curve, geom.Point3, core.Double, cad.Surface
Parameters

Type

Name

Description

OffsetCurveoffsetCurveThe offsetCurve.
Returns

Type

Name

Description

CurvecurveThe curve of the offsetCurve.
Point3directionThe direction of the offset.
DoubledistanceThe distance of the offset.
SurfacesurfaceReferenceThe surfaceReference of the offsetCurve.
See also:

getOffsetSurfaceDefinition

Get all parameters contained in the offsetSurface.
cad.getOffsetSurfaceDefinition(offsetSurface) -> cad.Surface, core.Double
Parameters

Type

Name

Description

OffsetSurfaceoffsetSurfaceThe offsetSurface.
Returns

Type

Name

Description

SurfacebaseSurfaceThe initial surface.
DoubledistanceThe distance offset.
See also:

getOpenShellOrientedFaces

Get all orienteFaces contain in the openShell.
cad.getOpenShellOrientedFaces(openShell) -> cad.OrientedFaceList
Parameters

Type

Name

Description

OpenShellopenShellThe openShell.
Returns

Type

Name

Description

OrientedFaceListorientedFacesThe orientedFaces contain within the openShell.
See also:

getParabolaCurveDefinition

Get all parameters contained in the parabolaCurve.
cad.getParabolaCurveDefinition(parabolaCurve) -> core.Double, geom.Matrix4
Parameters

Type

Name

Description

ParabolaCurveparabolaCurveThe parabolaCurve.
Returns

Type

Name

Description

DoublefocalLengthThe radius of the hyperbola.
Matrix4matrixThe transformation matrix of the hyperbola.
See also:

getParametricPrecisionOnSurface

Returns the parametric precision of a surface from the input precision.
cad.getParametricPrecisionOnSurface(surface, precision) -> core.Double
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
DoubleprecisionInput precision.
Returns

Type

Name

Description

DoubleparametricPrecision
See also:

getPlaneSurfaceDefinition

Get all parameters contained in the planeSurface.
cad.getPlaneSurfaceDefinition(planeSurface) -> geom.Matrix4
Parameters

Type

Name

Description

PlaneSurfaceplaneSurfaceThe planeSurface.
Returns

Type

Name

Description

Matrix4matrixThe transformation matrix of planeSurface.
See also:

getPolylineCurveDefinition

Get all parameters contained in the polylinCurve.
cad.getPolylineCurveDefinition(polylineCurve) -> geom.Point3List, core.DoubleList
Parameters

Type

Name

Description

PolylineCurvepolylineCurveThe polylineCurve.
Returns

Type

Name

Description

Point3ListpointsThe points of the polylineCurve.
DoubleListparametersThe parameters of the polylineCurve.
See also:

getRevolutionSurfaceDefinition

Get all parameters contained in the revolutionSurface.
cad.getRevolutionSurfaceDefinition(revolutionSurface) -> cad.Curve, geom.Point3, geom.Point3, core.Double, core.Double
Parameters

Type

Name

Description

RevolutionSurfacerevolutionSurfaceThe revolutionSurface.
Returns

Type

Name

Description

CurvegeneratrixCurveThe generatrix curve of the revolutionSurface.
Point3axisOriginThe origin of the axis of the revolutionSurface.
Point3axisDirectionThe direction of the axis of the revolutionSurface.
DoublestartAngleThe starting angle of the revolutionSurface.
DoubleendAngleThe ending angle of the revolutionSurface.
See also:

getRuledSurfaceDefinition

Get all parameters contained in the ruledSurface.
cad.getRuledSurfaceDefinition(ruledSurface) -> cad.Curve, cad.Curve
Parameters

Type

Name

Description

RuledSurfaceruledSurfaceThe ruledSurface.
Returns

Type

Name

Description

CurvefirstCurveThe first curve of the ruledSurface.
CurvesecondCurveThe second curve of the ruledSurface.
See also:

getSegmentCurveDefinition

Get all parameters contained in the segmentCurve.
cad.getSegmentCurveDefinition(segmentCurve) -> geom.Point3, geom.Point3
Parameters

Type

Name

Description

SegmentCurvesegmentCurveThe segmentCurve.
Returns

Type

Name

Description

Point3startPointThe first point of the segmentCurve.
Point3endPointThe second point of the segmentCurve.
See also:

getSphereSurfaceDefinition

Get all parameters contained in the sphereSurface.
cad.getSphereSurfaceDefinition(sphereSurface) -> core.Double, geom.Matrix4
Parameters

Type

Name

Description

SphereSurfacesphereSurfaceThe sphereSurface.
Returns

Type

Name

Description

DoubleradiusThe radius of the sphereSurface.
Matrix4matrixThe transformation matrix of sphereSurface.
See also:

getSurfaceLimits

Get the parametric space limits of a surface.
cad.getSurfaceLimits(surface) -> cad.Bounds2D
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Returns

Type

Name

Description

Bounds2DlimitsSurface limits.
See also:

getSurfacicCurveDefinition

Get all parameters contained in the surfacicCurve.
cad.getSurfacicCurveDefinition(surfacicCurve) -> cad.Surface, cad.Curve
Parameters

Type

Name

Description

SurfacicCurvesurfacicCurveThe surfacicCurve.
Returns

Type

Name

Description

SurfacesurfaceThe surface of the surfacicCurve.
Curvecurve2DThe 2D curve of the surfacicCurve.
See also:

getTabulatedCylinderSurfaceDefinition

Get all parameters contained in the TabulatedCylinderSurface.
cad.getTabulatedCylinderSurfaceDefinition(tabulatedCylinderSurface) -> cad.Curve, geom.Point3, cad.Bounds1D
Parameters

Type

Name

Description

TabulatedCylinderSurfacetabulatedCylinderSurfaceThe tabulatedCylinderSurface.
Returns

Type

Name

Description

CurvedirectrixCurveThe directrix curve of the tabulatedCylinderSurface.
Point3generatrixLineThe generatrix line of the tabulatedCylinderSurface.
Bounds1DrangeThe range of the tabulatedCylinderSurface.
See also:

getTorusSurfaceDefinition

Get all parameters contained in the torusSurface.
cad.getTorusSurfaceDefinition(torusSurface) -> core.Double, core.Double, geom.Matrix4, core.Int
Parameters

Type

Name

Description

TorusSurfacetorusSurfaceThe torusSurface.
Returns

Type

Name

Description

DoublemajorRadiusThe major radius of the torusSurface.
DoubleminorRadiusThe minor radius of the torusSurface.
Matrix4matrixThe transformation matrix of torusSurface.
InttypeThe torus shape type id.
See also:

getTransformedCurveDefinition

Get all parameters contained in the transformedCurve.
cad.getTransformedCurveDefinition(transformedCurve) -> cad.Curve, geom.Matrix4
Parameters

Type

Name

Description

TransformedCurvetransformedCurveThe transformedCurve.
Returns

Type

Name

Description

CurvecurveThe initial curve.
Matrix4matrixThe transformation matrix.
See also:

getVertexPosition

Get the position of the vertex.
cad.getVertexPosition(vertex) -> geom.Point3
Parameters

Type

Name

Description

VertexvertexThe vertex.
Returns

Type

Name

Description

Point3positionThe position of the vertex.
See also:

invertOnCurve

Invert a point to a curve.
cad.invertOnCurve(curve, point, precision=-1) -> core.Double
Parameters

Type

Name

Description

CurvecurveThe curve.
Point3pointThe point to invert.
DoubleprecisionInversion precision.
Returns

Type

Name

Description

DoubleparameterThe inversion parameter on the curve.
See also:

invertOnSurface

Invert a point to a surface.
cad.invertOnSurface(surface, point, precision=-1) -> geom.Point2
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Point3pointThe point to invert.
DoubleprecisionInversion precision.
Returns

Type

Name

Description

Point2parameterThe inversion parameter on the surface.
See also:

isCurveClosed

If the curve is closed, return true, return false otherwise.
cad.isCurveClosed(curve) -> core.Boolean
Parameters

Type

Name

Description

CurvecurveThe curve.
Returns

Type

Name

Description

BooleanclosedThe value.
See also:

isCurveFinite

If the curve is finite return true, return false otherwise.
cad.isCurveFinite(curve) -> core.Boolean
Parameters

Type

Name

Description

CurvecurveThe curve.
Returns

Type

Name

Description

BooleanfiniteThe value.
See also:

isCurvePeriodic

If the curve is periodic return true, return false otherwise.
cad.isCurvePeriodic(curve) -> core.Boolean, core.Double
Parameters

Type

Name

Description

CurvecurveThe curve.
Returns

Type

Name

Description

BooleanperiodicThe value.
DoubleperiodIf th curve is periodic, this value is equal to the period value, equal to 0 otherwise.
See also:

isSurfaceClosed

Return if the surface is closed on U or on V.
cad.isSurfaceClosed(surface) -> core.Boolean, core.Boolean
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Returns

Type

Name

Description

BooleanclosedUThe value on U.
BooleanclosedVThe value on V.
See also:

isSurfacePeriodic

Return if the surface is periodic on U or on V.
cad.isSurfacePeriodic(surface) -> core.Boolean, core.Boolean, core.Double, core.Double
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Returns

Type

Name

Description

BooleanperiodicUThe value on U.
BooleanperiodicVThe value on V.
DoubleperiodUIf th curve is periodic on U, this value is equal to the period value, equal to 0 otherwise.
DoubleperiodVIf th curve is periodic on V, this value is equal to the period value, equal to 0 otherwise.
See also:

needTorusShapeCheck

Returns true if the torus has a shape (lemon or apple) corresponding to the provided points.
cad.needTorusShapeCheck(surface, points) -> core.Boolean
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Point3ListpointsList of points to check the surface.
Returns

Type

Name

Description

BooleanresultResult of the check.
See also:

projectOnCurve

Project a point to a curve.
cad.projectOnCurve(curve, point, precision=-1) -> core.Double
Parameters

Type

Name

Description

CurvecurveThe curve.
Point3pointThe point to project.
DoubleprecisionProjection precision.
Returns

Type

Name

Description

DoubleprojectionParameterThe projection parameter on the curve.
See also:

projectOnSurface

Project a point to a surface.
cad.projectOnSurface(surface, point, precision=-1) -> geom.Point2
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Point3pointThe point to project.
DoubleprecisionProjection precision.
Returns

Type

Name

Description

Point2projectionParameterThe projection parameter on the surface.
See also:

setCoEdgeCurve2D

Set the curve 2D value of a coEdge.
cad.setCoEdgeCurve2D(coEdge, curve2D)
Parameters

Type

Name

Description

CoEdgecoEdgeThe coEdge.
Curvecurve2DThe new curve 2D.
See also:

setCoEdgeSurface

Set the surface value of a coEdge.
cad.setCoEdgeSurface(coEdge, surface)
Parameters

Type

Name

Description

CoEdgecoEdgeThe coEdge.
SurfacesurfaceThe new surface.
See also:

setCurveLimits

Set the parametric space limits of a curve.
cad.setCurveLimits(curve, limits)
Parameters

Type

Name

Description

CurvecurveThe curve.
Bounds1DlimitsCurve limits.
See also:

setEdgeMaterial

Define an edge's material.
cad.setEdgeMaterial(edge, material)
Parameters

Type

Name

Description

EdgeedgeThe edge to apply to style to.
MaterialmaterialThe material to apply.
See also:

structure creation

createBody

Create a body from a surface.
cad.createBody(outerShell, innerShells=None) -> cad.Body
Parameters

Type

Name

Description

ClosedShellouterShellClosedShell used to create the body.
ClosedShellListinnerShellsList of closedShell used to create the body.
Returns

Type

Name

Description

BodybodyThe created body.
See also:

createClosedShell

Create a closedShell from a set of faces of a set of orientations.
cad.createClosedShell(faces, orientations) -> cad.ClosedShell
Parameters

Type

Name

Description

FaceListfacesList of faces composing the closedShell.
OrientationListorientationsList of orientations for each face.
Returns

Type

Name

Description

ClosedShellclosedShellThe created closedShell.
See also:

createCoEdge

Create an coEdge with a edge and an orientation.
cad.createCoEdge(edge, orientation, surface=0, curve2D=0, computeGateway=False) -> cad.CoEdge
Parameters

Type

Name

Description

EdgeedgeEdge used to create the coEdge.
OrientationorientationOrientation of the edge regarding the loop.
SurfacesurfaceThe surface trimmed by the edge.
Curvecurve2DSurfacic curve of the edge on the surface trimmed.
BooleancomputeGatewayNeeded if 3d curve and 2d curve have different parametrization.
Returns

Type

Name

Description

CoEdgecoEdgeThe created edge.
See also:

createEdge

Create an edge with a curve an extremity vertices.
cad.createEdge(curve, startVertex, endVertex) -> cad.Edge
Parameters

Type

Name

Description

CurvecurveCurve used to create the edge.
VertexstartVertexThe start vertex.
VertexendVertexThe end vertex.
Returns

Type

Name

Description

EdgeedgeThe created edge.
See also:

createEdgeFromCurve

Create an edge from a limited curve.
cad.createEdgeFromCurve(curve) -> cad.Edge
Parameters

Type

Name

Description

CurvecurveLimited curve used to create the edge.
Returns

Type

Name

Description

EdgeedgeThe created edge.
See also:

createEdgeWithBounds

Create an edge with a curve an extremity vertices and a given boundary.
cad.createEdgeWithBounds(curve, startVertex, endVertex, bounds) -> cad.Edge
Parameters

Type

Name

Description

CurvecurveCurve used to create the edge.
VertexstartVertexThe start vertex.
VertexendVertexThe end vertex.
Bounds1DboundsThe parametrization boundary.
Returns

Type

Name

Description

EdgeedgeThe created edge.
See also:

createFace

Create a face from a surface.
cad.createFace(surface, loopList=None, useSurfaceOrientation=False) -> cad.Face
Parameters

Type

Name

Description

SurfacesurfaceSurface used to create the face.
LoopListloopListList of Loops used to create the face.
BooleanuseSurfaceOrientationIf True, the face will have the same orientation than the surface and loops will be inverted if they are inconsistent.
Returns

Type

Name

Description

FacefaceThe created face.
See also:

createLoop

Create a loop from a set of edges of a set of orientations.
cad.createLoop(coEdges, check=True, deleteIsolatedVertices=True) -> cad.Loop
Parameters

Type

Name

Description

CoEdgeListcoEdgesList of coEdges composing the loop.
BooleancheckIf true, the loop check if edges are well connected or not.
BooleandeleteIsolatedVerticesIf true, this will merge isolated vertices in the loop.
Returns

Type

Name

Description

LooploopThe created loop.
See also:

createLoopFromCurve

Create a loop from a finite curve.
cad.createLoopFromCurve(curve) -> cad.Loop
Parameters

Type

Name

Description

CurvecurveThe curve to create the loop with.
Returns

Type

Name

Description

LooploopThe created loop.
See also:

createOpenShell

Create a openShell from a set of faces of a set of orientations and set of loops.
cad.createOpenShell(faces, orientations) -> cad.OpenShell
Parameters

Type

Name

Description

FaceListfacesList of faces composing the openShell.
OrientationListorientationsList of orientations for each face.
Returns

Type

Name

Description

OpenShellopenShellThe created openShell.
See also:

createVertex

Create a vertex from a position.
cad.createVertex(position) -> cad.Vertex
Parameters

Type

Name

Description

Point3positionVertex position.
Returns

Type

Name

Description

VertexvertexThe created vertex.
See also:

invertCoEdge

Invert a coedge.
cad.invertCoEdge(coedge)
Parameters

Type

Name

Description

CoEdgecoedgeThe coedge to invert.
See also:

invertFaces

Invert faces.
cad.invertFaces(faces, invertLoops=True)
Parameters

Type

Name

Description

FaceListfacesThe faces to invert.
BooleaninvertLoopsIf true, invert loops orientation.
See also:

invertLoop

Invert a loop.
cad.invertLoop(loop)
Parameters

Type

Name

Description

LooploopThe loop to invert.
See also:

isSurfaceFinite

Return if the surface is finite.
cad.isSurfaceFinite(surface) -> core.Boolean
Parameters

Type

Name

Description

SurfacesurfaceThe surface.
Returns

Type

Name

Description

BooleanfiniteTells if finite.
See also:

surfaces

addPrecisionArea

Define a working area on the 2D projection of the surface to define a parametric precision.
cad.addPrecisionArea(surface, aabr)
Parameters

Type

Name

Description

SurfacesurfaceSurface on which the precision area will be set.
AABRaabr2D area defining the working area.
See also:

createBezierSurface

Create a new bezier surface.
cad.createBezierSurface(degreeU, degreeV, poles) -> cad.Surface
Parameters

Type

Name

Description

IntdegreeUU degree.
IntdegreeVV degree.
Point3ListpolesPoles list.
Returns

Type

Name

Description

SurfacebezierSurfaceThe new Bezier surface.
See also:

createConeSurface

Create a new cone surface.
cad.createConeSurface(radius, semiAngle, matrix=geom.IdentityMatrix4) -> cad.Surface
Parameters

Type

Name

Description

DistanceradiusRadius of the cone at origin.
DoublesemiAngleSemi-angle of the cone (in rad).
Matrix4matrixPositionning matrix of the cone.
Returns

Type

Name

Description

SurfaceconeSurfaceThe new cone surface.
See also:

createCurveExtrusionSurface

Create a new curveExtrusion surface.
cad.createCurveExtrusionSurface(generatrixCurve, directrixCurve, refSurface=0) -> cad.Surface
Parameters

Type

Name

Description

CurvegeneratrixCurveThe generatrix curve.
CurvedirectrixCurveThe directrix curve.
SurfacerefSurfaceThe reference surface.
Returns

Type

Name

Description

SurfacecurveExtrusionSurfaceThe new curveExtrusion surface.
See also:

createCylinderSurface

Create a new cylinder surface.
cad.createCylinderSurface(radius, matrix=geom.IdentityMatrix4) -> cad.Surface
Parameters

Type

Name

Description

DistanceradiusRadius of the cylinder.
Matrix4matrixPositionning matrix of the cylinder.
Returns

Type

Name

Description

SurfacecylinderSurfaceThe new cylinder surface.
See also:

createEllipticConeSurface

Create a new elliptic cone surface.
cad.createEllipticConeSurface(radius1, radius2, semiAngle, matrix=geom.IdentityMatrix4) -> cad.Surface
Parameters

Type

Name

Description

Distanceradius1Radius of the cone at origin on the X axis.
Distanceradius2Radius of the cone at origin on the Y axis.
DoublesemiAngleSemi-angle of the cone (in rad).
Matrix4matrixPositionning matrix of the cone.
Returns

Type

Name

Description

SurfaceellipticConeSurfaceThe new elliptic cone surface.
See also:

createNURBSSurface

Create a new NURBS surface.
cad.createNURBSSurface(degreeU, degreeV, knotsU, knotsV, poles, weights=None) -> cad.Surface
Parameters

Type

Name

Description

IntdegreeUU degree.
IntdegreeVV degree.
DoubleListknotsUKnots on U.
DoubleListknotsVKnots on V.
Point3ListpolesPoles list.
DoubleListweightsWeights list.
Returns

Type

Name

Description

SurfaceNURBSSurfaceThe new NURBS surface.
See also:

createOffsetSurface

Create a new offset surface.
cad.createOffsetSurface(baseSurface, distance) -> cad.Surface
Parameters

Type

Name

Description

SurfacebaseSurfaceThe base surface.
DoubledistanceThe offset distance.
Returns

Type

Name

Description

SurfaceoffsetSurfaceThe new offset surface.
See also:

createPlaneSurface

Create a new plane surface.
cad.createPlaneSurface(matrix=geom.IdentityMatrix4) -> cad.Surface
Parameters

Type

Name

Description

Matrix4matrixPositionning matrix of the plane.
Returns

Type

Name

Description

SurfaceplaneSurfaceThe new plane surface.
See also:

createRevolutionSurface

Create a new revolution surface.
cad.createRevolutionSurface(generatrixCurve, axisOrigin, axisDirection, startParam=0, endParam=Core.TwoPi) -> cad.Surface
Parameters

Type

Name

Description

CurvegeneratrixCurveGeneratrix curve rotated to create the revolution surface.
Point3axisOriginAxis origin point.
Vector3axisDirectionAxis direction vector.
DoublestartParamStart angle of the revolution surface (in rad).
DoubleendParamEnd angle of the revolution surface (in rad).
Returns

Type

Name

Description

SurfacerevolutionSurfaceRevolution surface generated by rotating the given curve around the axis.
See also:

createRuledSurface

Create a new ruled surface.
cad.createRuledSurface(firstCurve, secondCurve) -> cad.Surface
Parameters

Type

Name

Description

CurvefirstCurveFirst Curve.
CurvesecondCurveSeconde Curve.
Returns

Type

Name

Description

SurfaceruledSurfaceThe new ruled surface.
See also:

createSphereSurface

Create a new sphere surface.
cad.createSphereSurface(radius, matrix=geom.IdentityMatrix4) -> cad.Surface
Parameters

Type

Name

Description

DistanceradiusRadius of the sphere.
Matrix4matrixPositionning matrix of the sphere.
Returns

Type

Name

Description

SurfacesphereSurfaceThe new sphere surface.
See also:

createTabulatedCylinderSurface

Create a new tabulated cylinder surface.
cad.createTabulatedCylinderSurface(directrixCurve, GeneratixLine, minRange, maxRange) -> cad.Surface
Parameters

Type

Name

Description

CurvedirectrixCurveDirectrix Curve.
Point3GeneratixLineGeneratrix Line.
DistanceminRangeMinimimum value of the range.
DistancemaxRangeMaximum value of the range.
Returns

Type

Name

Description

SurfacetabulatedCylinderSurfaceThe new tabulated cylinder surface.
See also:

createTorusSurface

Create a new torus surface.
cad.createTorusSurface(radiusMax, radiusMin, matrix=geom.IdentityMatrix4) -> cad.Surface
Parameters

Type

Name

Description

DistanceradiusMaxMajor radius .
DistanceradiusMinMinor radius .
Matrix4matrixPositionning matrix of the sphere.
Returns

Type

Name

Description

SurfacetorusSurfaceThe new torus surface.
See also:

needPrecisionArea

Tells if it needs a working area on the surface.
cad.needPrecisionArea(surface) -> core.Boolean
Parameters

Type

Name

Description

SurfacesurfaceSurface to check if it needs precision area.
Returns

Type

Name

Description

BooleanneedResult.
See also: