Asset Transformer SDK (ex Pixyz) CADInterface Class
Read time 35 minutes
Last updated a day ago Inheritance
Inherited Members
Namespace: UnityEngine.Pixyz.CAD
public class CADInterface : Interface
Methods
GetLastError
public static string GetLastError()
Returns
ConfigureFunctionLogger
[HandleProcessCorruptedStateExceptions] public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
Parameters
Type Name Description string functionName bool enableFunction bool enableParameters bool enableExecutionTime
GetPrecision
Get the CAD precision.
[HandleProcessCorruptedStateExceptions] public double GetPrecision()
Returns
GetUnitLength
Get the CAD unity length property.
[HandleProcessCorruptedStateExceptions] public double GetUnitLength()
Returns
SetUnitLength
Set the CAD unity length property.
[HandleProcessCorruptedStateExceptions] public void SetUnitLength(double precision)
Parameters
Type Name Description double precision Unit length.
SolidIntersection
Perform boolean operation intersection on two bodies (A ^ B).
[HandleProcessCorruptedStateExceptions] public BodyList SolidIntersection(uint A, uint B)
Parameters
Type Name Description uint A The first body. uint B The second body.
Returns
SolidSubtraction
Perform boolean operation subtraction on two bodies (A - B).
[HandleProcessCorruptedStateExceptions] public BodyList SolidSubtraction(uint A, uint B)
Parameters
Type Name Description uint A The first body. uint B The second body.
Returns
SolidUnion
Perform boolean operation union on two bodies (A + B).
[HandleProcessCorruptedStateExceptions] public BodyList SolidUnion(uint A, uint B)
Parameters
Type Name Description uint A The first body. uint B The second body.
Returns
CreateBezierCurve
Create a Bezier curve.
[HandleProcessCorruptedStateExceptions] public uint CreateBezierCurve(Point3List poles)
Parameters
Returns
CreateCircleCurve
Create a new circle.
[HandleProcessCorruptedStateExceptions] public uint CreateCircleCurve(double radius, Matrix4 matrix)
Parameters
Type Name Description double radius Circle radius. Matrix4 matrix Transformation matrix.
Returns
CreateCompositeCurve
Create a composite curve from a list of limited curves.
[HandleProcessCorruptedStateExceptions] public uint CreateCompositeCurve(CurveList CurveList)
Parameters
Type Name Description CurveList CurveList List of limited curves.
Returns
CreateCosinusCurve
Create a cosinus curve.
[HandleProcessCorruptedStateExceptions] public uint CreateCosinusCurve(double Amplitude, double Offset, double Period, Matrix4 matrix)
Parameters
Type Name Description double Amplitude Cosinus amplitude. double Offset Cosinus offset. double Period Cosinus period. Matrix4 matrix Transformation matrix.
Returns
CreateEllipseCurve
Create an ellipse curve.
[HandleProcessCorruptedStateExceptions] public uint CreateEllipseCurve(double URadius, double VRadius, Matrix4 matrix)
Parameters
Type Name Description double URadius Ellipse radius in u direction. double VRadius Ellipse radius in v direction. Matrix4 matrix Transformation matrix.
Returns
CreateHelixCurve
Create an helix curve.
[HandleProcessCorruptedStateExceptions] public uint CreateHelixCurve(double radius, double pitch, Matrix4 matrix, bool trigonometrixOrientation = true)
Parameters
Type Name Description double radius Radius of the helix. double pitch Height of one revolution. Matrix4 matrix Transformation matrix. bool trigonometrixOrientation Orientation of the rotation.
Returns
CreateHermiteCurve
Create a Hermite Curve.
[HandleProcessCorruptedStateExceptions] public uint CreateHermiteCurve(Point3 FirstPoint, Point3 FirstTangent, Point3 SecondPoint, Point3 SecondTangent)
Parameters
Type Name Description Point3 FirstPoint Starting point of the curve. Point3 FirstTangent Tangent of the starting point. Point3 SecondPoint Ending point of the curve. Point3 SecondTangent Tangent of the ending point.
Returns
CreateHyperbolaCurve
Create an hyperBola curve.
[HandleProcessCorruptedStateExceptions] public uint CreateHyperbolaCurve(double URadius, double VRadius, Matrix4 matrix)
Parameters
Type Name Description double URadius Hyperbola radius in u direction. double VRadius Hyperbola radius in v direction. Matrix4 matrix Transformation matrix.
Returns
CreateIntersectionCurve
Create a Intersection Curve.
[HandleProcessCorruptedStateExceptions] public uint CreateIntersectionCurve(uint firstSurface, uint secondSurface, uint chart, double minBounds, double maxBounds)
Parameters
Type Name Description uint firstSurface First surface of the intersection curve. uint secondSurface Second surface of the intersection curve. uint chart Direction curve of the intersection curve. double minBounds Minimum value of the bounds of the intersection curve. double maxBounds Maximum value of the bounds of the intersection curve.
Returns
CreateLineCurve
Create a Line Curve.
[HandleProcessCorruptedStateExceptions] public uint CreateLineCurve(Point3 OriginPt, Point3 DirectionPt)
Parameters
Type Name Description Point3 OriginPt Orinin point of the line curve. Point3 DirectionPt Direction vector of the line curve.
Returns
CreateNURBSCurve
Create a NURBS curve.
[HandleProcessCorruptedStateExceptions] public uint CreateNURBSCurve(int degree, DoubleList knots, Point3List poles, DoubleList weights = null)
Parameters
Returns
CreateParabolaCurve
Create an parabola curve.
[HandleProcessCorruptedStateExceptions] public uint CreateParabolaCurve(double focalLength, Matrix4 matrix)
Parameters
Type Name Description double focalLength Focal lecngth of the parabola. Matrix4 matrix Transformation matrix.
Returns
CreatePolylineCurve
Create a Polyline curve.
[HandleProcessCorruptedStateExceptions] public uint CreatePolylineCurve(Point3List points, DoubleList parameters = null)
Parameters
Type Name Description Point3List points Points of polyline curve. DoubleList parameters Params of polyline curve.
Returns
CreateSegmentCurve
Create a segment curve from two given points.
[HandleProcessCorruptedStateExceptions] public uint CreateSegmentCurve(Point3 firstPoint, Point3 secondPoint)
Parameters
Type Name Description Point3 firstPoint First point. Point3 secondPoint Second point.
Returns
CreateSurfacicCurve
Create a curve from a surface.
[HandleProcessCorruptedStateExceptions] public uint CreateSurfacicCurve(uint surface, uint curve2D)
Parameters
Type Name Description uint surface Surface to bound. uint curve2D Curve to project.
Returns
CreateTransformedCurve
Create a curve from a surface.
[HandleProcessCorruptedStateExceptions] public uint CreateTransformedCurve(uint curve, Matrix4 matrix)
Parameters
Type Name Description uint curve Curve to transform. Matrix4 matrix Matrix of the transformation.
Returns
InvertCurve
Invert a curve parametricaly.
[HandleProcessCorruptedStateExceptions] public uint InvertCurve(uint curve, double precision)
Parameters
Type Name Description uint curve The curve to invert. double precision The precision used to invert the curve.
Returns
CreateBoundedLinearExtrusion
Create a linear extrusion body.
[HandleProcessCorruptedStateExceptions] public uint CreateBoundedLinearExtrusion(Point3 direction, Point3 planeOrigin, Point3 planeNormal, ProfileBase profileBase, Point3 startingNormal, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type Name Description Point3 direction The profile curves will be extruded in this direction. Point3 planeOrigin The origin of the plane that bound the extrusion. Point3 planeNormal The normal of the plane that bound the extrusion. ProfileBase profileBase Profile loops to extrude. Point3 startingNormal The normal of the plane in which all starting profile lie on. ExtrusionBoundaryType boundaryType If the profile curves define an area or not. ProfileBase profileEnd The end profile of the extrusion.
Returns
CreateCurveExtrusion
Create a curve extrusion body.
[HandleProcessCorruptedStateExceptions] public uint CreateCurveExtrusion(uint curve, ProfileBase profileBase, Point3 startingNormal, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type Name Description uint curve The profile curves will be extruded along this curve. ProfileBase profileBase Profile loops to extrude. Point3 startingNormal The normal of the plane in which all starting profile lie one. ExtrusionBoundaryType boundaryType If the profile curves define an area or not. ProfileBase profileEnd The end profile of the extrusion.
Returns
CreateLinearExtrusion
Create a linear extrusion body.
[HandleProcessCorruptedStateExceptions] public uint CreateLinearExtrusion(Point3 direction, double depth, ProfileBase profileBase, Point3 startingNormal, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type Name Description Point3 direction The profile curves will be extruded in this direction. double depth The extrusion will stop at the defined depth. ProfileBase profileBase Profile loops to extrude. Point3 startingNormal The normal of the plane in which all starting profile lie on. ExtrusionBoundaryType boundaryType If the profile curves define an area or not. ProfileBase profileEnd The end profile of the extrusion.
Returns
CreateMultiExtrusion
Create a linear extrusion body.
[HandleProcessCorruptedStateExceptions] public uint CreateMultiExtrusion(ProfileBaseList profileBaseList, CurveListList profileExtrusionList, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full)
Parameters
Returns
CreateRevolveExtrusion
Create a revolved extrusion body.
[HandleProcessCorruptedStateExceptions] public uint CreateRevolveExtrusion(Point3 center, Point3 axis, double angle, ProfileBase profileBase, Point3 startingNormal, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type Name Description Point3 center The center of revolution. Point3 axis The profile curves will be revolved around this axis. double angle The revolution will stop at the defined angle. ProfileBase profileBase Profile loops to revolve. Point3 startingNormal The normal of the plane in which all starting profile lie on. ExtrusionBoundaryType boundaryType If the profile curves define an area or not. ProfileBase profileEnd The end profile of the extrusion.
Returns
GetFaceMaterial
Get the material on a face.
[HandleProcessCorruptedStateExceptions] public uint GetFaceMaterial(uint face)
Parameters
Type Name Description uint face The face.
Returns
SetFaceMaterial
Set the material on a face.
[HandleProcessCorruptedStateExceptions] public void SetFaceMaterial(uint face, uint material)
Parameters
Type Name Description uint face The face. uint material The material.
AddBodyToModel
Add a body to the model.
[HandleProcessCorruptedStateExceptions] public void AddBodyToModel(uint body, uint model)
Parameters
Type Name Description uint body Body added to the model. uint model Model.
AddEdgeToModel
Add an edge to the model.
[HandleProcessCorruptedStateExceptions] public void AddEdgeToModel(uint edge, uint model)
Parameters
Type Name Description uint edge Edge added to the model. uint model Model.
AddOpenShellToModel
Add an open shell to the model.
[HandleProcessCorruptedStateExceptions] public void AddOpenShellToModel(uint shell, uint model)
Parameters
Type Name Description uint shell Open shell added to the model. uint model Model.
AddVertexToModel
Add a vertex to the model.
[HandleProcessCorruptedStateExceptions] public void AddVertexToModel(uint vtx, uint model)
Parameters
Type Name Description uint vtx Vertex added to the model. uint model Model.
BuildFaces
Build faces from a surface and a set of loop.
[HandleProcessCorruptedStateExceptions] public BuildFacesReturn BuildFaces(uint surface, LoopList loopList)
Parameters
Type Name Description uint surface Surface used to build the faces. LoopList loopList List of Loops used to build the faces.
Returns
CreateModel
Create a new model.
[HandleProcessCorruptedStateExceptions] public uint CreateModel(double precision = -1)
Parameters
Type Name Description double precision CAD precision for this model.
Returns
EndThreadBrepSession
Create a new BrepSession on current thread.
[HandleProcessCorruptedStateExceptions] public void EndThreadBrepSession()
GetAllModelFaces
Get all the face of a model recursively.
[HandleProcessCorruptedStateExceptions] public FaceList GetAllModelFaces(uint model)
Parameters
Type Name Description uint model Model.
Returns
GetModelBodies
Get the list of bodies contained in a model.
[HandleProcessCorruptedStateExceptions] public BodyList GetModelBodies(uint model)
Parameters
Type Name Description uint model Model.
Returns
GetModelBoundaries
Get boundary edges of a model grouped by cycles.
[HandleProcessCorruptedStateExceptions] public EdgeListList GetModelBoundaries(uint model)
Parameters
Type Name Description uint model Model.
Returns
GetModelEdges
Get the list of free edges contained in a model.
[HandleProcessCorruptedStateExceptions] public EdgeList GetModelEdges(uint model)
Parameters
Type Name Description uint model Model.
Returns
GetModelOpenShells
Get the list of open shells contained in a model.
[HandleProcessCorruptedStateExceptions] public OpenShellList GetModelOpenShells(uint model)
Parameters
Type Name Description uint model Model.
Returns
GetModelPrecision
Get the precision used in a model.
[HandleProcessCorruptedStateExceptions] public double GetModelPrecision(uint model)
Parameters
Type Name Description uint model Model.
Returns
GetModelVertices
Get the list of free vertices contained in a model.
[HandleProcessCorruptedStateExceptions] public VertexList GetModelVertices(uint model)
Parameters
Type Name Description uint model Model.
Returns
GetReferencers
Returns the entities referencing a given CAD entity.
[HandleProcessCorruptedStateExceptions] public EntityList GetReferencers(uint entity)
Parameters
Type Name Description uint entity CAD entity to get the referencers.
Returns
StartThreadBrepSession
Create a new BrepSession on current thread.
[HandleProcessCorruptedStateExceptions] public void StartThreadBrepSession(double precision)
Parameters
Type Name Description double precision CAD precision for this model.
CreateBRepCone
Creates a BRep Cone whose axis is the Z axis centered on O.
[HandleProcessCorruptedStateExceptions] public uint CreateBRepCone(double radius, double height, Matrix4 matrix = null)
Parameters
Type Name Description double radius Cone radius. double height Cone height. Matrix4 matrix Positionning matrix of the Cone.
Returns
CreateBRepCube
Creates a BRep Cube.
[HandleProcessCorruptedStateExceptions] public uint CreateBRepCube(double size, Matrix4 matrix = null)
Parameters
Type Name Description double size Side length. Matrix4 matrix Positionning matrix of the Cube.
Returns
CreateBRepCylinder
Creates a BRep Cylinder aligned on the Z axis centered on O.
[HandleProcessCorruptedStateExceptions] public uint CreateBRepCylinder(double radius, double length, Matrix4 matrix = null)
Parameters
Type Name Description double radius Cylinder radius. double length Cylinder length. Matrix4 matrix Positionning matrix of the Cylinder.
Returns
CreateBRepPlane
Creates a BRep Plane whose normal is the Z axis centered on O.
[HandleProcessCorruptedStateExceptions] public uint CreateBRepPlane(double length, double width, Matrix4 matrix = null)
Parameters
Type Name Description double length Plane length (X axis). double width Plane width (Y axis). Matrix4 matrix Positionning matrix of the Plane.
Returns
CreateBRepSphere
Creates a BRep Sphere centered on O and whose singularities are on the Z axis.
[HandleProcessCorruptedStateExceptions] public uint CreateBRepSphere(double radius, Matrix4 matrix = null)
Parameters
Type Name Description double radius Sphere radius. Matrix4 matrix Positionning matrix of the Sphere.
Returns
CreateBRepTorus
Creates a BRep Torus whose axis is the Z axis centered on O.
[HandleProcessCorruptedStateExceptions] public uint CreateBRepTorus(double majorRadius, double minorRadius, Matrix4 matrix = null)
Parameters
Type Name Description double majorRadius Major radius. double minorRadius Minor radius. Matrix4 matrix Positionning matrix of the Torus.
Returns
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.
[HandleProcessCorruptedStateExceptions] public bool AreCurvesEquals(uint curve1, uint curve2)
Parameters
Type Name Description uint curve1 A curve to be compare. uint curve2 A curve to be compare.
Returns
EvalCurvatureOnCurve
Evaluate curvature on a curve.
[HandleProcessCorruptedStateExceptions] public double EvalCurvatureOnCurve(uint curve, double parameter)
Parameters
Type Name Description uint curve The curve. double parameter Parameter to evaluate.
Returns
EvalCurvatureOnSurface
Evaluate main curvatures on a surface.
[HandleProcessCorruptedStateExceptions] public Curvatures EvalCurvatureOnSurface(uint surface, Point2 parameter)
Parameters
Type Name Description uint surface The surface. Point2 parameter Parameter to evaluate.
Returns
EvalOnCurve
Evaluate a point and derivatives on a curve.
[HandleProcessCorruptedStateExceptions] public EvalOnCurveReturn EvalOnCurve(uint curve, double parameter, int derivation = 0)
Parameters
Type Name Description uint curve The curve. double parameter Parameter to evaluate. int derivation Derivation level (0,1,2).
Returns
EvalOnSurface
Evaluate a point and derivatives on a surface.
[HandleProcessCorruptedStateExceptions] public EvalOnSurfaceReturn EvalOnSurface(uint surface, Point2 parameter, int derivation = 0)
Parameters
Type Name Description uint surface The surface. Point2 parameter Parameter to evaluate. int derivation Derivation level (0,1,2).
Returns
GetBodyClosedShells
Get all closedShells contain in the body.
[HandleProcessCorruptedStateExceptions] public ClosedShellList GetBodyClosedShells(uint body)
Parameters
Type Name Description uint body The body.
Returns
GetCircleCurveDefinition
Get all parameters contained in the circleCurve.
[HandleProcessCorruptedStateExceptions] public GetCircleCurveDefinitionReturn GetCircleCurveDefinition(uint circleCurve)
Parameters
Type Name Description uint circleCurve The circleCurve.
Returns
GetClosedShellOrientedFaces
Get all orienteFaces contain in the closedShell.
[HandleProcessCorruptedStateExceptions] public OrientedFaceList GetClosedShellOrientedFaces(uint closedShell)
Parameters
Type Name Description uint closedShell The closedShell.
Returns
GetCoEdgeDefinition
Get all parameters contained in the coEdge.
[HandleProcessCorruptedStateExceptions] public GetCoEdgeDefinitionReturn GetCoEdgeDefinition(uint coEdge)
Parameters
Type Name Description uint coEdge The coEdge.
Returns
GetCompositeCurveDefinition
Get all parameters contained in the compositeCurve.
[HandleProcessCorruptedStateExceptions] public GetCompositeCurveDefinitionReturn GetCompositeCurveDefinition(uint compositeCurve)
Parameters
Type Name Description uint compositeCurve The compositeCurve.
Returns
GetConeSurfaceDefinition
Get all parameters contained in the coneSurface.
[HandleProcessCorruptedStateExceptions] public GetConeSurfaceDefinitionReturn GetConeSurfaceDefinition(uint coneSurface)
Parameters
Type Name Description uint coneSurface The coneSurface.
Returns
GetCurveExtrusionSurfaceDefinition
Get all parameters contained in the curveExtrusionSurface.
[HandleProcessCorruptedStateExceptions] public GetCurveExtrusionSurfaceDefinitionReturn GetCurveExtrusionSurfaceDefinition(uint curveExtrusionSurface)
Parameters
Type Name Description uint curveExtrusionSurface The curveExtrusionSurface.
Returns
GetCurveLength
Returns the length of the curve.
[HandleProcessCorruptedStateExceptions] public double GetCurveLength(uint curve)
Parameters
Type Name Description uint curve The curve.
Returns
GetCurveLimits
Get the parametric space limits of a curve.
[HandleProcessCorruptedStateExceptions] public Bounds1D GetCurveLimits(uint curve)
Parameters
Type Name Description uint curve The curve.
Returns
GetCylinderSurfaceDefinition
Get all parameters contained in the cylinderSurface.
[HandleProcessCorruptedStateExceptions] public GetCylinderSurfaceDefinitionReturn GetCylinderSurfaceDefinition(uint cylinderSurface)
Parameters
Type Name Description uint cylinderSurface The cylinderSurface.
Returns
GetEdgeDefinition
Get all parameters contained in the edge.
[HandleProcessCorruptedStateExceptions] public GetEdgeDefinitionReturn GetEdgeDefinition(uint edge)
Parameters
Type Name Description uint edge The edge.
Returns
GetEdgeLength
Returns the length of the edge.
[HandleProcessCorruptedStateExceptions] public double GetEdgeLength(uint edge)
Parameters
Type Name Description uint edge The edge.
Returns
GetEdgeMaterial
Get the material of the edge, if any.
[HandleProcessCorruptedStateExceptions] public uint GetEdgeMaterial(uint edge)
Parameters
Type Name Description uint edge
Returns
GetEllipseCurveDefinition
Get all parameters contained in the ellipseCurve.
[HandleProcessCorruptedStateExceptions] public GetEllipseCurveDefinitionReturn GetEllipseCurveDefinition(uint ellipseCurve)
Parameters
Type Name Description uint ellipseCurve The ellipseCurve.
Returns
GetEllipticConeSurfaceDefinition
Get all parameters contained in the ellipticConeSurface.
[HandleProcessCorruptedStateExceptions] public GetEllipticConeSurfaceDefinitionReturn GetEllipticConeSurfaceDefinition(uint ellipticConeSurface)
Parameters
Type Name Description uint ellipticConeSurface The EllipticConeSurface.
Returns
GetFaceDefinition
Get all parameters contain in the face.
[HandleProcessCorruptedStateExceptions] public GetFaceDefinitionReturn GetFaceDefinition(uint face)
Parameters
Type Name Description uint face The face.
Returns
GetFaceParametricBoundaries
Get parametric definition of each face loop.
[HandleProcessCorruptedStateExceptions] public Point2ListList GetFaceParametricBoundaries(uint face)
Parameters
Type Name Description uint face The face.
Returns
GetHelixCurveDefinition
Get all parameters contained in the helixCurve.
[HandleProcessCorruptedStateExceptions] public GetHelixCurveDefinitionReturn GetHelixCurveDefinition(uint helixCurve)
Parameters
Type Name Description uint helixCurve The helixCurve.
Returns
GetHermiteCurveDefinition
Get all parameters contained in the hermiteCurve.
[HandleProcessCorruptedStateExceptions] public GetHermiteCurveDefinitionReturn GetHermiteCurveDefinition(uint hermiteCurve)
Parameters
Type Name Description uint hermiteCurve The HermiteCurve.
Returns
GetHyperbolaCurveDefinition
Get all parameters contained in the hyperbolaCurve.
[HandleProcessCorruptedStateExceptions] public GetHyperbolaCurveDefinitionReturn GetHyperbolaCurveDefinition(uint hyperbolaCurve)
Parameters
Type Name Description uint hyperbolaCurve The hyperbolaCurve.
Returns
GetIntersectionCurveDefinition
Get all parameters contained in the intersectionCurve.
[HandleProcessCorruptedStateExceptions] public GetIntersectionCurveDefinitionReturn GetIntersectionCurveDefinition(uint intersectionCurve)
Parameters
Type Name Description uint intersectionCurve The intersectionCurve.
Returns
GetLineCurveDefinition
Get all parameters contain in the lineCurve.
[HandleProcessCorruptedStateExceptions] public GetLineCurveDefinitionReturn GetLineCurveDefinition(uint lineCurve)
Parameters
Type Name Description uint lineCurve The lineCurve.
Returns
GetLoopCoEdges
Get all coEdges contain in the loop.
[HandleProcessCorruptedStateExceptions] public CoEdgeList GetLoopCoEdges(uint loop)
Parameters
Type Name Description uint loop The loop.
Returns
GetNURBSCurveDefinition
Get all parameters contained in the nurbsCurve.
[HandleProcessCorruptedStateExceptions] public GetNURBSCurveDefinitionReturn GetNURBSCurveDefinition(uint nurbsCurve)
Parameters
Type Name Description uint nurbsCurve The nurbsCurve.
Returns
GetNURBSSurfaceDefinition
Get all parameters contained in the nurbsSurface.
[HandleProcessCorruptedStateExceptions] public GetNURBSSurfaceDefinitionReturn GetNURBSSurfaceDefinition(uint nurbsSurface)
Parameters
Type Name Description uint nurbsSurface The nurbsSurface.
Returns
GetOffsetCurveDefinition
Get all parameters contained in the offsetCurve.
[HandleProcessCorruptedStateExceptions] public GetOffsetCurveDefinitionReturn GetOffsetCurveDefinition(uint offsetCurve)
Parameters
Type Name Description uint offsetCurve The offsetCurve.
Returns
GetOffsetSurfaceDefinition
Get all parameters contained in the offsetSurface.
[HandleProcessCorruptedStateExceptions] public GetOffsetSurfaceDefinitionReturn GetOffsetSurfaceDefinition(uint offsetSurface)
Parameters
Type Name Description uint offsetSurface The offsetSurface.
Returns
GetOpenShellOrientedFaces
Get all orienteFaces contain in the openShell.
[HandleProcessCorruptedStateExceptions] public OrientedFaceList GetOpenShellOrientedFaces(uint openShell)
Parameters
Type Name Description uint openShell The openShell.
Returns
GetParabolaCurveDefinition
Get all parameters contained in the parabolaCurve.
[HandleProcessCorruptedStateExceptions] public GetParabolaCurveDefinitionReturn GetParabolaCurveDefinition(uint parabolaCurve)
Parameters
Type Name Description uint parabolaCurve The parabolaCurve.
Returns
GetParametricPrecisionOnSurface
Returns the parametric precision of a surface from the input precision.
[HandleProcessCorruptedStateExceptions] public double GetParametricPrecisionOnSurface(uint surface, double precision)
Parameters
Type Name Description uint surface The surface. double precision Input precision.
Returns
GetPlaneSurfaceDefinition
Get all parameters contained in the planeSurface.
[HandleProcessCorruptedStateExceptions] public Matrix4 GetPlaneSurfaceDefinition(uint planeSurface)
Parameters
Type Name Description uint planeSurface The planeSurface.
Returns
GetPolylineCurveDefinition
Get all parameters contained in the polylinCurve.
[HandleProcessCorruptedStateExceptions] public GetPolylineCurveDefinitionReturn GetPolylineCurveDefinition(uint polylineCurve)
Parameters
Type Name Description uint polylineCurve The polylineCurve.
Returns
GetRevolutionSurfaceDefinition
Get all parameters contained in the revolutionSurface.
[HandleProcessCorruptedStateExceptions] public GetRevolutionSurfaceDefinitionReturn GetRevolutionSurfaceDefinition(uint revolutionSurface)
Parameters
Type Name Description uint revolutionSurface The revolutionSurface.
Returns
GetRuledSurfaceDefinition
Get all parameters contained in the ruledSurface.
[HandleProcessCorruptedStateExceptions] public GetRuledSurfaceDefinitionReturn GetRuledSurfaceDefinition(uint ruledSurface)
Parameters
Type Name Description uint ruledSurface The ruledSurface.
Returns
GetSegmentCurveDefinition
Get all parameters contained in the segmentCurve.
[HandleProcessCorruptedStateExceptions] public GetSegmentCurveDefinitionReturn GetSegmentCurveDefinition(uint segmentCurve)
Parameters
Type Name Description uint segmentCurve The segmentCurve.
Returns
GetSphereSurfaceDefinition
Get all parameters contained in the sphereSurface.
[HandleProcessCorruptedStateExceptions] public GetSphereSurfaceDefinitionReturn GetSphereSurfaceDefinition(uint sphereSurface)
Parameters
Type Name Description uint sphereSurface The sphereSurface.
Returns
GetSurfaceLimits
Get the parametric space limits of a surface.
[HandleProcessCorruptedStateExceptions] public Bounds2D GetSurfaceLimits(uint surface)
Parameters
Type Name Description uint surface The surface.
Returns
GetSurfacicCurveDefinition
Get all parameters contained in the surfacicCurve.
[HandleProcessCorruptedStateExceptions] public GetSurfacicCurveDefinitionReturn GetSurfacicCurveDefinition(uint surfacicCurve)
Parameters
Type Name Description uint surfacicCurve The surfacicCurve.
Returns
GetTabulatedCylinderSurfaceDefinition
Get all parameters contained in the TabulatedCylinderSurface.
[HandleProcessCorruptedStateExceptions] public GetTabulatedCylinderSurfaceDefinitionReturn GetTabulatedCylinderSurfaceDefinition(uint tabulatedCylinderSurface)
Parameters
Type Name Description uint tabulatedCylinderSurface The tabulatedCylinderSurface.
Returns
GetTorusSurfaceDefinition
Get all parameters contained in the torusSurface.
[HandleProcessCorruptedStateExceptions] public GetTorusSurfaceDefinitionReturn GetTorusSurfaceDefinition(uint torusSurface)
Parameters
Type Name Description uint torusSurface The torusSurface.
Returns
GetTransformedCurveDefinition
Get all parameters contained in the transformedCurve.
[HandleProcessCorruptedStateExceptions] public GetTransformedCurveDefinitionReturn GetTransformedCurveDefinition(uint transformedCurve)
Parameters
Type Name Description uint transformedCurve The transformedCurve.
Returns
GetVertexPosition
Get the position of the vertex.
[HandleProcessCorruptedStateExceptions] public Point3 GetVertexPosition(uint vertex)
Parameters
Type Name Description uint vertex The vertex.
Returns
InvertOnCurve
Invert a point to a curve.
[HandleProcessCorruptedStateExceptions] public double InvertOnCurve(uint curve, Point3 point, double precision = -1)
Parameters
Type Name Description uint curve The curve. Point3 point The point to invert. double precision Inversion precision.
Returns
InvertOnSurface
Invert a point to a surface.
[HandleProcessCorruptedStateExceptions] public Point2 InvertOnSurface(uint surface, Point3 point, double precision = -1)
Parameters
Type Name Description uint surface The surface. Point3 point The point to invert. double precision Inversion precision.
Returns
IsCurveClosed
If the curve is closed, return true, return false otherwise.
[HandleProcessCorruptedStateExceptions] public bool IsCurveClosed(uint curve)
Parameters
Type Name Description uint curve The curve.
Returns
IsCurveFinite
If the curve is finite return true, return false otherwise.
[HandleProcessCorruptedStateExceptions] public bool IsCurveFinite(uint curve)
Parameters
Type Name Description uint curve The curve.
Returns
IsCurvePeriodic
If the curve is periodic return true, return false otherwise.
[HandleProcessCorruptedStateExceptions] public IsCurvePeriodicReturn IsCurvePeriodic(uint curve)
Parameters
Type Name Description uint curve The curve.
Returns
IsSurfaceClosed
Return if the surface is closed on U or on V.
[HandleProcessCorruptedStateExceptions] public IsSurfaceClosedReturn IsSurfaceClosed(uint surface)
Parameters
Type Name Description uint surface The surface.
Returns
IsSurfacePeriodic
Return if the surface is periodic on U or on V.
[HandleProcessCorruptedStateExceptions] public IsSurfacePeriodicReturn IsSurfacePeriodic(uint surface)
Parameters
Type Name Description uint surface The surface.
Returns
NeedTorusShapeCheck
Returns true if the torus has a shape (lemon or apple) corresponding to the provided points.
[HandleProcessCorruptedStateExceptions] public bool NeedTorusShapeCheck(uint surface, Point3List points)
Parameters
Type Name Description uint surface The surface. Point3List points List of points to check the surface.
Returns
ProjectOnCurve
Project a point to a curve.
[HandleProcessCorruptedStateExceptions] public double ProjectOnCurve(uint curve, Point3 point, double precision = -1)
Parameters
Type Name Description uint curve The curve. Point3 point The point to project. double precision Projection precision.
Returns
ProjectOnSurface
Project a point to a surface.
[HandleProcessCorruptedStateExceptions] public Point2 ProjectOnSurface(uint surface, Point3 point, double precision = -1)
Parameters
Type Name Description uint surface The surface. Point3 point The point to project. double precision Projection precision.
Returns
SetCoEdgeCurve2D
Set the curve 2D value of a coEdge.
[HandleProcessCorruptedStateExceptions] public void SetCoEdgeCurve2D(uint coEdge, uint curve2D)
Parameters
Type Name Description uint coEdge The coEdge. uint curve2D The new curve 2D.
SetCoEdgeSurface
Set the surface value of a coEdge.
[HandleProcessCorruptedStateExceptions] public void SetCoEdgeSurface(uint coEdge, uint surface)
Parameters
Type Name Description uint coEdge The coEdge. uint surface The new surface.
SetCurveLimits
Set the parametric space limits of a curve.
[HandleProcessCorruptedStateExceptions] public void SetCurveLimits(uint curve, Bounds1D limits)
Parameters
Type Name Description uint curve The curve. Bounds1D limits Curve limits.
SetEdgeMaterial
Define an edge's material.
[HandleProcessCorruptedStateExceptions] public void SetEdgeMaterial(uint edge, uint material)
Parameters
Type Name Description uint edge The edge to apply to style to. uint material The material to apply.
CreateBody
Create a body from a surface.
[HandleProcessCorruptedStateExceptions] public uint CreateBody(uint outerShell, ClosedShellList innerShells = null)
Parameters
Type Name Description uint outerShell ClosedShell used to create the body. ClosedShellList innerShells List of closedShell used to create the body.
Returns
CreateClosedShell
Create a closedShell from a set of faces of a set of orientations.
[HandleProcessCorruptedStateExceptions] public uint CreateClosedShell(FaceList faces, OrientationList orientations)
Parameters
Type Name Description FaceList faces List of faces composing the closedShell. OrientationList orientations List of orientations for each face.
Returns
CreateCoEdge
Create an coEdge with a edge and an orientation.
[HandleProcessCorruptedStateExceptions] public uint CreateCoEdge(uint edge, bool orientation, uint surface = 0, uint curve2D = 0, bool computeGateway = false)
Parameters
Type Name Description uint edge Edge used to create the coEdge. bool orientation Orientation of the edge regarding the loop. uint surface The surface trimmed by the edge. uint curve2D Surfacic curve of the edge on the surface trimmed. bool computeGateway Needed if 3d curve and 2d curve have different parametrization.
Returns
CreateEdge
Create an edge with a curve an extremity vertices.
[HandleProcessCorruptedStateExceptions] public uint CreateEdge(uint curve, uint startVertex, uint endVertex)
Parameters
Type Name Description uint curve Curve used to create the edge. uint startVertex The start vertex. uint endVertex The end vertex.
Returns
CreateEdgeFromCurve
Create an edge from a limited curve.
[HandleProcessCorruptedStateExceptions] public uint CreateEdgeFromCurve(uint curve)
Parameters
Type Name Description uint curve Limited curve used to create the edge.
Returns
CreateEdgeWithBounds
Create an edge with a curve an extremity vertices and a given boundary.
[HandleProcessCorruptedStateExceptions] public uint CreateEdgeWithBounds(uint curve, uint startVertex, uint endVertex, Bounds1D bounds)
Parameters
Type Name Description uint curve Curve used to create the edge. uint startVertex The start vertex. uint endVertex The end vertex. Bounds1D bounds The parametrization boundary.
Returns
CreateFace
Create a face from a surface.
[HandleProcessCorruptedStateExceptions] public uint CreateFace(uint surface, LoopList loopList = null, bool useSurfaceOrientation = false)
Parameters
Type Name Description uint surface Surface used to create the face. LoopList loopList List of Loops used to create the face. bool useSurfaceOrientation If True, the face will have the same orientation than the surface and loops will be inverted if they are inconsistent.
Returns
CreateLoop
Create a loop from a set of edges of a set of orientations.
[HandleProcessCorruptedStateExceptions] public uint CreateLoop(CoEdgeList coEdges, bool check = true, bool deleteIsolatedVertices = true)
Parameters
Type Name Description CoEdgeList coEdges List of coEdges composing the loop. bool check If true, the loop check if edges are well connected or not. bool deleteIsolatedVertices If true, this will merge isolated vertices in the loop.
Returns
CreateLoopFromCurve
Create a loop from a finite curve.
[HandleProcessCorruptedStateExceptions] public uint CreateLoopFromCurve(uint curve)
Parameters
Type Name Description uint curve The curve to create the loop with.
Returns
CreateOpenShell
Create a openShell from a set of faces of a set of orientations and set of loops.
[HandleProcessCorruptedStateExceptions] public uint CreateOpenShell(FaceList faces, OrientationList orientations)
Parameters
Type Name Description FaceList faces List of faces composing the openShell. OrientationList orientations List of orientations for each face.
Returns
CreateVertex
Create a vertex from a position.
[HandleProcessCorruptedStateExceptions] public uint CreateVertex(Point3 position)
Parameters
Type Name Description Point3 position Vertex position.
Returns
InvertCoEdge
Invert a coedge.
[HandleProcessCorruptedStateExceptions] public void InvertCoEdge(uint coedge)
Parameters
Type Name Description uint coedge The coedge to invert.
InvertFaces
Invert faces.
[HandleProcessCorruptedStateExceptions] public void InvertFaces(FaceList faces, bool invertLoops = true)
Parameters
Type Name Description FaceList faces The faces to invert. bool invertLoops If true, invert loops orientation.
InvertLoop
Invert a loop.
[HandleProcessCorruptedStateExceptions] public void InvertLoop(uint loop)
Parameters
Type Name Description uint loop The loop to invert.
IsSurfaceFinite
Return if the surface is finite.
[HandleProcessCorruptedStateExceptions] public bool IsSurfaceFinite(uint surface)
Parameters
Type Name Description uint surface The surface.
Returns
AddPrecisionArea
Define a working area on the 2D projection of the surface to define a parametric precision.
[HandleProcessCorruptedStateExceptions] public void AddPrecisionArea(uint surface, AABR aabr)
Parameters
Type Name Description uint surface Surface on which the precision area will be set. AABR aabr 2D area defining the working area.
CreateBezierSurface
Create a new bezier surface.
[HandleProcessCorruptedStateExceptions] public uint CreateBezierSurface(int degreeU, int degreeV, Point3List poles)
Parameters
Type Name Description int degreeU U degree. int degreeV V degree. Point3List poles Poles list.
Returns
CreateConeSurface
Create a new cone surface.
[HandleProcessCorruptedStateExceptions] public uint CreateConeSurface(double radius, double semiAngle, Matrix4 matrix = null)
Parameters
Type Name Description double radius Radius of the cone at origin. double semiAngle Semi-angle of the cone (in rad). Matrix4 matrix Positionning matrix of the cone.
Returns
CreateCurveExtrusionSurface
Create a new curveExtrusion surface.
[HandleProcessCorruptedStateExceptions] public uint CreateCurveExtrusionSurface(uint generatrixCurve, uint directrixCurve, uint refSurface = 0)
Parameters
Type Name Description uint generatrixCurve The generatrix curve. uint directrixCurve The directrix curve. uint refSurface The reference surface.
Returns
CreateCylinderSurface
Create a new cylinder surface.
[HandleProcessCorruptedStateExceptions] public uint CreateCylinderSurface(double radius, Matrix4 matrix = null)
Parameters
Type Name Description double radius Radius of the cylinder. Matrix4 matrix Positionning matrix of the cylinder.
Returns
CreateEllipticConeSurface
Create a new elliptic cone surface.
[HandleProcessCorruptedStateExceptions] public uint CreateEllipticConeSurface(double radius1, double radius2, double semiAngle, Matrix4 matrix = null)
Parameters
Type Name Description double radius1 Radius of the cone at origin on the X axis. double radius2 Radius of the cone at origin on the Y axis. double semiAngle Semi-angle of the cone (in rad). Matrix4 matrix Positionning matrix of the cone.
Returns
CreateNURBSSurface
Create a new NURBS surface.
[HandleProcessCorruptedStateExceptions] public uint CreateNURBSSurface(int degreeU, int degreeV, DoubleList knotsU, DoubleList knotsV, Point3List poles, DoubleList weights = null)
Parameters
Returns
CreateOffsetSurface
Create a new offset surface.
[HandleProcessCorruptedStateExceptions] public uint CreateOffsetSurface(uint baseSurface, double distance)
Parameters
Type Name Description uint baseSurface The base surface. double distance The offset distance.
Returns
CreatePlaneSurface
Create a new plane surface.
[HandleProcessCorruptedStateExceptions] public uint CreatePlaneSurface(Matrix4 matrix = null)
Parameters
Type Name Description Matrix4 matrix Positionning matrix of the plane.
Returns
CreateRevolutionSurface
Create a new revolution surface.
[HandleProcessCorruptedStateExceptions] public uint CreateRevolutionSurface(uint generatrixCurve, Point3 axisOrigin, Point3 axisDirection, double startParam = 0, double endParam = 6.283185307179586)
Parameters
Type Name Description uint generatrixCurve Generatrix curve rotated to create the revolution surface. Point3 axisOrigin Axis origin point. Point3 axisDirection Axis direction vector. double startParam Start angle of the revolution surface (in rad). double endParam End angle of the revolution surface (in rad).
Returns
CreateRuledSurface
Create a new ruled surface.
[HandleProcessCorruptedStateExceptions] public uint CreateRuledSurface(uint firstCurve, uint secondCurve)
Parameters
Type Name Description uint firstCurve First Curve. uint secondCurve Seconde Curve.
Returns
CreateSphereSurface
Create a new sphere surface.
[HandleProcessCorruptedStateExceptions] public uint CreateSphereSurface(double radius, Matrix4 matrix = null)
Parameters
Type Name Description double radius Radius of the sphere. Matrix4 matrix Positionning matrix of the sphere.
Returns
CreateTabulatedCylinderSurface
Create a new tabulated cylinder surface.
[HandleProcessCorruptedStateExceptions] public uint CreateTabulatedCylinderSurface(uint directrixCurve, Point3 GeneratixLine, double minRange, double maxRange)
Parameters
Type Name Description uint directrixCurve Directrix Curve. Point3 GeneratixLine Generatrix Line. double minRange Minimimum value of the range. double maxRange Maximum value of the range.
Returns
CreateTorusSurface
Create a new torus surface.
[HandleProcessCorruptedStateExceptions] public uint CreateTorusSurface(double radiusMax, double radiusMin, Matrix4 matrix = null)
Parameters
Type Name Description double radiusMax Major radius. double radiusMin Minor radius. Matrix4 matrix Positionning matrix of the sphere.
Returns
NeedPrecisionArea
Tells if it needs a working area on the surface.
[HandleProcessCorruptedStateExceptions] public bool NeedPrecisionArea(uint surface)
Parameters
Type Name Description uint surface Surface to check if it needs precision area.
Returns