CADInterface
Class
Read time 37 minutesLast updated 8 months ago
Inheritance
Inherited Members
Namespace: UnityEngine.Pixyz.CAD
public class CADInterface : Interface
Methods
GetLastError
public static string GetLastError()
Returns
Type | Description |
|---|---|
| string |
ConfigureFunctionLogger
[HandleProcessCorruptedStateExceptions]public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
Parameters
GetPrecision
Get the CAD precision.
[HandleProcessCorruptedStateExceptions]public double GetPrecision()
Returns
Type | Description |
|---|---|
| double |
GetUnitLength
Get the CAD unity length property.
[HandleProcessCorruptedStateExceptions]public double GetUnitLength()
Returns
Type | Description |
|---|---|
| double |
SetUnitLength
Set the CAD unity length property.
[HandleProcessCorruptedStateExceptions]public void SetUnitLength(double precision)
Parameters
Type | Name | Description |
|---|---|---|
| double | precision | Unit length. |
Test
[HandleProcessCorruptedStateExceptions]public void Test()
SolidIntersection
Perform boolean operation intersection on two bodies (A ^ B).
[HandleProcessCorruptedStateExceptions]public BodyList SolidIntersection(uint A, uint B)
Parameters
Returns
Type | Description |
|---|---|
| BodyList |
SolidSubtraction
Perform boolean operation subtraction on two bodies (A - B).
[HandleProcessCorruptedStateExceptions]public BodyList SolidSubtraction(uint A, uint B)
Parameters
Returns
Type | Description |
|---|---|
| BodyList |
SolidUnion
Perform boolean operation union on two bodies (A + B).
[HandleProcessCorruptedStateExceptions]public BodyList SolidUnion(uint A, uint B)
Parameters
Returns
Type | Description |
|---|---|
| BodyList |
ConvertCurveIntoNurbs
[HandleProcessCorruptedStateExceptions]public uint ConvertCurveIntoNurbs(uint curve, Bounds1D limits)
Parameters
Type | Name | Description |
|---|---|---|
| uint | curve | Curve to convert. |
| Bounds1D | limits | Curve limits on which we want to created the nurbs. |
Returns
Type | Description |
|---|---|
| uint |
CreateBezierCurve
Create a Bezier curve.
[HandleProcessCorruptedStateExceptions]public uint CreateBezierCurve(Point3List poles)
Parameters
Type | Name | Description |
|---|---|---|
| Point3List | poles | Poles list. |
Returns
Type | Description |
|---|---|
| uint |
CreateCircleCurve
Create a new circle.
[HandleProcessCorruptedStateExceptions]public uint CreateCircleCurve(double radius, Matrix4 matrix)
Parameters
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
CreateNURBSCurve
Create a NURBS curve.
[HandleProcessCorruptedStateExceptions]public uint CreateNURBSCurve(int degree, DoubleList knots, Point3List poles, DoubleList weights = null)
Parameters
Type | Name | Description |
|---|---|---|
| int | degree | Degree of the curve. |
| DoubleList | knots | Knots of the curve. |
| Point3List | poles | Poles list. |
| DoubleList | weights | Weight list. |
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
CreateSegmentCurve
Create a segment curve from two given points.
[HandleProcessCorruptedStateExceptions]public uint CreateSegmentCurve(Point3 firstPoint, Point3 secondPoint)
Parameters
Returns
Type | Description |
|---|---|
| uint |
CreateSurfacicCurve
Create a curve from a surface.
[HandleProcessCorruptedStateExceptions]public uint CreateSurfacicCurve(uint surface, uint curve2D)
Parameters
Returns
Type | Description |
|---|---|
| uint |
CreateTransformedCurve
Create a curve from a surface.
[HandleProcessCorruptedStateExceptions]public uint CreateTransformedCurve(uint curve, Matrix4 matrix)
Parameters
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
CreateMultiExtrusion
Create a linear extrusion body.
[HandleProcessCorruptedStateExceptions]public uint CreateMultiExtrusion(ProfileBaseList profileBaseList, CurveListList profileExtrusionList, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full)
Parameters
Type | Name | Description |
|---|---|---|
| ProfileBaseList | profileBaseList | Profile loops to be extruded. |
| CurveListList | profileExtrusionList | Extrusion profiles. |
| ExtrusionBoundaryType | boundaryType | If the profile curves define an area or not. |
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
GetFaceMaterial
Get the material on a face.
[HandleProcessCorruptedStateExceptions]public uint GetFaceMaterial(uint face)
Parameters
Type | Name | Description |
|---|---|---|
| uint | face | The face. |
Returns
Type | Description |
|---|---|
| uint |
SetFaceMaterial
Set the material on a face.
[HandleProcessCorruptedStateExceptions]public void SetFaceMaterial(uint face, uint material)
Parameters
AddBodyToModel
Add a body to the model.
[HandleProcessCorruptedStateExceptions]public void AddBodyToModel(uint body, uint model)
Parameters
AddEdgeToModel
Add an edge to the model.
[HandleProcessCorruptedStateExceptions]public void AddEdgeToModel(uint edge, uint model)
Parameters
AddOpenShellToModel
Add an open shell to the model.
[HandleProcessCorruptedStateExceptions]public void AddOpenShellToModel(uint shell, uint model)
Parameters
AddVertexToModel
Add a vertex to the model.
[HandleProcessCorruptedStateExceptions]public void AddVertexToModel(uint vtx, uint model)
Parameters
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
Type | Description |
|---|---|
| BuildFacesReturn |
CreateModel
Create a new model.
[HandleProcessCorruptedStateExceptions]public uint CreateModel(double precision = -1)
Parameters
Type | Name | Description |
|---|---|---|
| double | precision | CAD precision for this model. |
Returns
Type | Description |
|---|---|
| uint |
DrawDebugFace
[HandleProcessCorruptedStateExceptions]public void DrawDebugFace(uint face, string name, Matrix4 transfo)
Parameters
Type | Name | Description |
|---|---|---|
| uint | face | The face. |
| string | name | Name of the debug node. |
| Matrix4 | transfo | The global transfrormation. |
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
Type | Description |
|---|---|
| FaceList |
GetFace2DArea
[HandleProcessCorruptedStateExceptions]public double GetFace2DArea(uint face)
Parameters
Type | Name | Description |
|---|---|---|
| uint | face | The face. |
Returns
Type | Description |
|---|---|
| double |
GetFaceAABB
[HandleProcessCorruptedStateExceptions]public AABB GetFaceAABB(uint face, double precision = -1)
Parameters
Returns
Type | Description |
|---|---|
| AABB |
GetModelBodies
Get the list of bodies contained in a model.
[HandleProcessCorruptedStateExceptions]public BodyList GetModelBodies(uint model)
Parameters
Type | Name | Description |
|---|---|---|
| uint | model | Model. |
Returns
Type | Description |
|---|---|
| BodyList |
GetModelBoundaries
Get boundary edges of a model grouped by cycles.
[HandleProcessCorruptedStateExceptions]public EdgeListList GetModelBoundaries(uint model)
Parameters
Type | Name | Description |
|---|---|---|
| uint | model | Model. |
Returns
Type | Description |
|---|---|
| EdgeListList |
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
Type | Description |
|---|---|
| EdgeList |
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
Type | Description |
|---|---|
| OpenShellList |
GetModelPrecision
Get the precision used in a model.
[HandleProcessCorruptedStateExceptions]public double GetModelPrecision(uint model)
Parameters
Type | Name | Description |
|---|---|---|
| uint | model | Model. |
Returns
Type | Description |
|---|---|
| double |
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
Type | Description |
|---|---|
| VertexList |
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
Type | Description |
|---|---|
| EntityList |
GetUnreferencedEntities
[HandleProcessCorruptedStateExceptions]public EntityList GetUnreferencedEntities()
Returns
Type | Description |
|---|---|
| EntityList |
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
Type | Description |
|---|---|
| uint |
CreateBRepCube
Creates a BRep Cube.
[HandleProcessCorruptedStateExceptions]public uint CreateBRepCube(double size, Matrix4 matrix = null)
Parameters
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
CreateBrick
[HandleProcessCorruptedStateExceptions]public uint CreateBrick(BrickDefinition brickDefinition)
Parameters
Type | Name | Description |
|---|---|---|
| BrickDefinition | brickDefinition | The definition of the wanted brick. |
Returns
Type | Description |
|---|---|
| uint |
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
Returns
Type | Description |
|---|---|
| bool |
EvalCurvatureOnCurve
Evaluate curvature on a curve.
[HandleProcessCorruptedStateExceptions]public double EvalCurvatureOnCurve(uint curve, double parameter)
Parameters
Returns
Type | Description |
|---|---|
| double |
EvalCurvatureOnSurface
Evaluate main curvatures on a surface.
[HandleProcessCorruptedStateExceptions]public Curvatures EvalCurvatureOnSurface(uint surface, Point2 parameter)
Parameters
Returns
Type | Description |
|---|---|
| Curvatures |
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
Type | Description |
|---|---|
| EvalOnCurveReturn |
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
Type | Description |
|---|---|
| EvalOnSurfaceReturn |
GetBodyClosedShells
Get all closedShells contain in the body.
[HandleProcessCorruptedStateExceptions]public ClosedShellList GetBodyClosedShells(uint body)
Parameters
Type | Name | Description |
|---|---|---|
| uint | body | The body. |
Returns
Type | Description |
|---|---|
| ClosedShellList |
GetCircleCurveDefinition
Get all parameters contained in the circleCurve.
[HandleProcessCorruptedStateExceptions]public GetCircleCurveDefinitionReturn GetCircleCurveDefinition(uint circleCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | circleCurve | The circleCurve. |
Returns
Type | Description |
|---|---|
| GetCircleCurveDefinitionReturn |
GetClosedShellOrientedFaces
Get all orienteFaces contain in the closedShell.
[HandleProcessCorruptedStateExceptions]public OrientedFaceList GetClosedShellOrientedFaces(uint closedShell)
Parameters
Type | Name | Description |
|---|---|---|
| uint | closedShell | The closedShell. |
Returns
Type | Description |
|---|---|
| OrientedFaceList |
GetCoEdgeDefinition
Get all parameters contained in the coEdge.
[HandleProcessCorruptedStateExceptions]public GetCoEdgeDefinitionReturn GetCoEdgeDefinition(uint coEdge)
Parameters
Type | Name | Description |
|---|---|---|
| uint | coEdge | The coEdge. |
Returns
Type | Description |
|---|---|
| GetCoEdgeDefinitionReturn |
GetCompositeCurveDefinition
Get all parameters contained in the compositeCurve.
[HandleProcessCorruptedStateExceptions]public GetCompositeCurveDefinitionReturn GetCompositeCurveDefinition(uint compositeCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | compositeCurve | The compositeCurve. |
Returns
Type | Description |
|---|---|
| GetCompositeCurveDefinitionReturn |
GetConeSurfaceDefinition
Get all parameters contained in the coneSurface.
[HandleProcessCorruptedStateExceptions]public GetConeSurfaceDefinitionReturn GetConeSurfaceDefinition(uint coneSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | coneSurface | The coneSurface. |
Returns
Type | Description |
|---|---|
| GetConeSurfaceDefinitionReturn |
GetCurveExtrusionSurfaceDefinition
Get all parameters contained in the curveExtrusionSurface.
[HandleProcessCorruptedStateExceptions]public GetCurveExtrusionSurfaceDefinitionReturn GetCurveExtrusionSurfaceDefinition(uint curveExtrusionSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | curveExtrusionSurface | The curveExtrusionSurface. |
Returns
Type | Description |
|---|---|
| GetCurveExtrusionSurfaceDefinitionReturn |
GetCurveLength
Returns the length of the curve.
[HandleProcessCorruptedStateExceptions]public double GetCurveLength(uint curve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | curve | The curve. |
Returns
Type | Description |
|---|---|
| double |
GetCurveLimits
Get the parametric space limits of a curve.
[HandleProcessCorruptedStateExceptions]public Bounds1D GetCurveLimits(uint curve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | curve | The curve. |
Returns
Type | Description |
|---|---|
| Bounds1D |
GetCylinderSurfaceDefinition
Get all parameters contained in the cylinderSurface.
[HandleProcessCorruptedStateExceptions]public GetCylinderSurfaceDefinitionReturn GetCylinderSurfaceDefinition(uint cylinderSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | cylinderSurface | The cylinderSurface. |
Returns
Type | Description |
|---|---|
| GetCylinderSurfaceDefinitionReturn |
GetEdgeConnectivity
Get the number of faces connected to this edge.
[HandleProcessCorruptedStateExceptions]public int GetEdgeConnectivity(uint edge)
Parameters
Type | Name | Description |
|---|---|---|
| uint | edge |
Returns
Type | Description |
|---|---|
| int |
GetEdgeDefinition
Get all parameters contained in the edge.
[HandleProcessCorruptedStateExceptions]public GetEdgeDefinitionReturn GetEdgeDefinition(uint edge)
Parameters
Type | Name | Description |
|---|---|---|
| uint | edge | The edge. |
Returns
Type | Description |
|---|---|
| GetEdgeDefinitionReturn |
GetEdgeLength
Returns the length of the edge.
[HandleProcessCorruptedStateExceptions]public double GetEdgeLength(uint edge)
Parameters
Type | Name | Description |
|---|---|---|
| uint | edge | The edge. |
Returns
Type | Description |
|---|---|
| double |
GetEdgeMaterial
Get the material of the edge, if any.
[HandleProcessCorruptedStateExceptions]public uint GetEdgeMaterial(uint edge)
Parameters
Type | Name | Description |
|---|---|---|
| uint | edge |
Returns
Type | Description |
|---|---|
| uint |
GetEllipseCurveDefinition
Get all parameters contained in the ellipseCurve.
[HandleProcessCorruptedStateExceptions]public GetEllipseCurveDefinitionReturn GetEllipseCurveDefinition(uint ellipseCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | ellipseCurve | The ellipseCurve. |
Returns
Type | Description |
|---|---|
| GetEllipseCurveDefinitionReturn |
GetEllipticConeSurfaceDefinition
Get all parameters contained in the ellipticConeSurface.
[HandleProcessCorruptedStateExceptions]public GetEllipticConeSurfaceDefinitionReturn GetEllipticConeSurfaceDefinition(uint ellipticConeSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | ellipticConeSurface | The EllipticConeSurface. |
Returns
Type | Description |
|---|---|
| GetEllipticConeSurfaceDefinitionReturn |
GetFaceDefinition
Get all parameters contain in the face.
[HandleProcessCorruptedStateExceptions]public GetFaceDefinitionReturn GetFaceDefinition(uint face)
Parameters
Type | Name | Description |
|---|---|---|
| uint | face | The face. |
Returns
Type | Description |
|---|---|
| GetFaceDefinitionReturn |
GetFaceParametricBoundaries
Get parametric definition of each face loop.
[HandleProcessCorruptedStateExceptions]public Point2ListList GetFaceParametricBoundaries(uint face)
Parameters
Type | Name | Description |
|---|---|---|
| uint | face | The face. |
Returns
Type | Description |
|---|---|
| Point2ListList |
GetHelixCurveDefinition
Get all parameters contained in the helixCurve.
[HandleProcessCorruptedStateExceptions]public GetHelixCurveDefinitionReturn GetHelixCurveDefinition(uint helixCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | helixCurve | The helixCurve. |
Returns
Type | Description |
|---|---|
| GetHelixCurveDefinitionReturn |
GetHermiteCurveDefinition
Get all parameters contained in the hermiteCurve.
[HandleProcessCorruptedStateExceptions]public GetHermiteCurveDefinitionReturn GetHermiteCurveDefinition(uint hermiteCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | hermiteCurve | The HermiteCurve. |
Returns
Type | Description |
|---|---|
| GetHermiteCurveDefinitionReturn |
GetHyperbolaCurveDefinition
Get all parameters contained in the hyperbolaCurve.
[HandleProcessCorruptedStateExceptions]public GetHyperbolaCurveDefinitionReturn GetHyperbolaCurveDefinition(uint hyperbolaCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | hyperbolaCurve | The hyperbolaCurve. |
Returns
Type | Description |
|---|---|
| GetHyperbolaCurveDefinitionReturn |
GetIntersectionCurveDefinition
Get all parameters contained in the intersectionCurve.
[HandleProcessCorruptedStateExceptions]public GetIntersectionCurveDefinitionReturn GetIntersectionCurveDefinition(uint intersectionCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | intersectionCurve | The intersectionCurve. |
Returns
Type | Description |
|---|---|
| GetIntersectionCurveDefinitionReturn |
GetLineCurveDefinition
Get all parameters contain in the lineCurve.
[HandleProcessCorruptedStateExceptions]public GetLineCurveDefinitionReturn GetLineCurveDefinition(uint lineCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | lineCurve | The lineCurve. |
Returns
Type | Description |
|---|---|
| GetLineCurveDefinitionReturn |
GetLoopCoEdges
Get all coEdges contain in the loop.
[HandleProcessCorruptedStateExceptions]public CoEdgeList GetLoopCoEdges(uint loop)
Parameters
Type | Name | Description |
|---|---|---|
| uint | loop | The loop. |
Returns
Type | Description |
|---|---|
| CoEdgeList |
GetNURBSCurveDefinition
Get all parameters contained in the nurbsCurve.
[HandleProcessCorruptedStateExceptions]public GetNURBSCurveDefinitionReturn GetNURBSCurveDefinition(uint nurbsCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | nurbsCurve | The nurbsCurve. |
Returns
Type | Description |
|---|---|
| GetNURBSCurveDefinitionReturn |
GetNURBSSurfaceDefinition
Get all parameters contained in the nurbsSurface.
[HandleProcessCorruptedStateExceptions]public GetNURBSSurfaceDefinitionReturn GetNURBSSurfaceDefinition(uint nurbsSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | nurbsSurface | The nurbsSurface. |
Returns
Type | Description |
|---|---|
| GetNURBSSurfaceDefinitionReturn |
GetOffsetCurveDefinition
Get all parameters contained in the offsetCurve.
[HandleProcessCorruptedStateExceptions]public GetOffsetCurveDefinitionReturn GetOffsetCurveDefinition(uint offsetCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | offsetCurve | The offsetCurve. |
Returns
Type | Description |
|---|---|
| GetOffsetCurveDefinitionReturn |
GetOffsetSurfaceDefinition
Get all parameters contained in the offsetSurface.
[HandleProcessCorruptedStateExceptions]public GetOffsetSurfaceDefinitionReturn GetOffsetSurfaceDefinition(uint offsetSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | offsetSurface | The offsetSurface. |
Returns
Type | Description |
|---|---|
| GetOffsetSurfaceDefinitionReturn |
GetOpenShellOrientedFaces
Get all orienteFaces contain in the openShell.
[HandleProcessCorruptedStateExceptions]public OrientedFaceList GetOpenShellOrientedFaces(uint openShell)
Parameters
Type | Name | Description |
|---|---|---|
| uint | openShell | The openShell. |
Returns
Type | Description |
|---|---|
| OrientedFaceList |
GetParabolaCurveDefinition
Get all parameters contained in the parabolaCurve.
[HandleProcessCorruptedStateExceptions]public GetParabolaCurveDefinitionReturn GetParabolaCurveDefinition(uint parabolaCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | parabolaCurve | The parabolaCurve. |
Returns
Type | Description |
|---|---|
| GetParabolaCurveDefinitionReturn |
GetParametricPrecisionOnSurface
Returns the parametric precision of a surface from the input precision.
[HandleProcessCorruptedStateExceptions]public double GetParametricPrecisionOnSurface(uint surface, double precision)
Parameters
Returns
Type | Description |
|---|---|
| double |
GetPlaneSurfaceDefinition
Get all parameters contained in the planeSurface.
[HandleProcessCorruptedStateExceptions]public Matrix4 GetPlaneSurfaceDefinition(uint planeSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | planeSurface | The planeSurface. |
Returns
Type | Description |
|---|---|
| Matrix4 |
GetPolylineCurveDefinition
Get all parameters contained in the polylinCurve.
[HandleProcessCorruptedStateExceptions]public GetPolylineCurveDefinitionReturn GetPolylineCurveDefinition(uint polylineCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | polylineCurve | The polylineCurve. |
Returns
Type | Description |
|---|---|
| GetPolylineCurveDefinitionReturn |
GetRevolutionSurfaceDefinition
Get all parameters contained in the revolutionSurface.
[HandleProcessCorruptedStateExceptions]public GetRevolutionSurfaceDefinitionReturn GetRevolutionSurfaceDefinition(uint revolutionSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | revolutionSurface | The revolutionSurface. |
Returns
Type | Description |
|---|---|
| GetRevolutionSurfaceDefinitionReturn |
GetRuledSurfaceDefinition
Get all parameters contained in the ruledSurface.
[HandleProcessCorruptedStateExceptions]public GetRuledSurfaceDefinitionReturn GetRuledSurfaceDefinition(uint ruledSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | ruledSurface | The ruledSurface. |
Returns
Type | Description |
|---|---|
| GetRuledSurfaceDefinitionReturn |
GetSegmentCurveDefinition
Get all parameters contained in the segmentCurve.
[HandleProcessCorruptedStateExceptions]public GetSegmentCurveDefinitionReturn GetSegmentCurveDefinition(uint segmentCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | segmentCurve | The segmentCurve. |
Returns
Type | Description |
|---|---|
| GetSegmentCurveDefinitionReturn |
GetSphereSurfaceDefinition
Get all parameters contained in the sphereSurface.
[HandleProcessCorruptedStateExceptions]public GetSphereSurfaceDefinitionReturn GetSphereSurfaceDefinition(uint sphereSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | sphereSurface | The sphereSurface. |
Returns
Type | Description |
|---|---|
| GetSphereSurfaceDefinitionReturn |
GetSurfaceLimits
Get the parametric space limits of a surface.
[HandleProcessCorruptedStateExceptions]public Bounds2D GetSurfaceLimits(uint surface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | surface | The surface. |
Returns
Type | Description |
|---|---|
| Bounds2D |
GetSurfaceType
Returns the surface type.
[HandleProcessCorruptedStateExceptions]public int GetSurfaceType(uint surface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | surface | The Surface. |
Returns
Type | Description |
|---|---|
| int |
GetSurfacicCurveDefinition
Get all parameters contained in the surfacicCurve.
[HandleProcessCorruptedStateExceptions]public GetSurfacicCurveDefinitionReturn GetSurfacicCurveDefinition(uint surfacicCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | surfacicCurve | The surfacicCurve. |
Returns
Type | Description |
|---|---|
| GetSurfacicCurveDefinitionReturn |
GetTabulatedCylinderSurfaceDefinition
Get all parameters contained in the TabulatedCylinderSurface.
[HandleProcessCorruptedStateExceptions]public GetTabulatedCylinderSurfaceDefinitionReturn GetTabulatedCylinderSurfaceDefinition(uint tabulatedCylinderSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | tabulatedCylinderSurface | The tabulatedCylinderSurface. |
Returns
Type | Description |
|---|---|
| GetTabulatedCylinderSurfaceDefinitionReturn |
GetTorusSurfaceDefinition
Get all parameters contained in the torusSurface.
[HandleProcessCorruptedStateExceptions]public GetTorusSurfaceDefinitionReturn GetTorusSurfaceDefinition(uint torusSurface)
Parameters
Type | Name | Description |
|---|---|---|
| uint | torusSurface | The torusSurface. |
Returns
Type | Description |
|---|---|
| GetTorusSurfaceDefinitionReturn |
GetTransformedCurveDefinition
Get all parameters contained in the transformedCurve.
[HandleProcessCorruptedStateExceptions]public GetTransformedCurveDefinitionReturn GetTransformedCurveDefinition(uint transformedCurve)
Parameters
Type | Name | Description |
|---|---|---|
| uint | transformedCurve | The transformedCurve. |
Returns
Type | Description |
|---|---|
| GetTransformedCurveDefinitionReturn |
GetVertexPosition
Get the position of the vertex.
[HandleProcessCorruptedStateExceptions]public Point3 GetVertexPosition(uint vertex)
Parameters
Type | Name | Description |
|---|---|---|
| uint | vertex | The vertex. |
Returns
Type | Description |
|---|---|
| Point3 |
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
Type | Description |
|---|---|
| double |
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
Type | Description |
|---|---|
| Point2 |
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
Type | Description |
|---|---|
| bool |
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
Type | Description |
|---|---|
| bool |
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
Type | Description |
|---|---|
| IsCurvePeriodicReturn |
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
Type | Description |
|---|---|
| IsSurfaceClosedReturn |
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
Type | Description |
|---|---|
| IsSurfacePeriodicReturn |
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
Type | Description |
|---|---|
| bool |
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
Type | Description |
|---|---|
| double |
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
Type | Description |
|---|---|
| Point2 |
SetCoEdgeCurve2D
Set the curve 2D value of a coEdge.
[HandleProcessCorruptedStateExceptions]public void SetCoEdgeCurve2D(uint coEdge, uint curve2D)
Parameters
SetCoEdgeSurface
Set the surface value of a coEdge.
[HandleProcessCorruptedStateExceptions]public void SetCoEdgeSurface(uint coEdge, uint surface)
Parameters
SetCurveLimits
Set the parametric space limits of a curve.
[HandleProcessCorruptedStateExceptions]public void SetCurveLimits(uint curve, Bounds1D limits)
Parameters
SetEdgeMaterial
Define an edge's material.
[HandleProcessCorruptedStateExceptions]public void SetEdgeMaterial(uint edge, uint material)
Parameters
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
CreateVertex
Create a vertex from a position.
[HandleProcessCorruptedStateExceptions]public uint CreateVertex(Point3 position)
Parameters
Type | Name | Description |
|---|---|---|
| Point3 | position | Vertex position. |
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| bool |
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. |
ConvertSurfaceIntoNurbs
[HandleProcessCorruptedStateExceptions]public uint ConvertSurfaceIntoNurbs(uint surface, double minBoundsU = 0, double maxBoundsU = 0, double minBoundsV = 0, double maxBoundsV = 0)
Parameters
Type | Name | Description |
|---|---|---|
| uint | surface | Surface to convert. |
| double | minBoundsU | Minimum bound on the U axis parameter. |
| double | maxBoundsU | Maximum bound on the U axis parameter. |
| double | minBoundsV | Minimum bound on the V axis parameter. |
| double | maxBoundsV | Maximum bound on the V axis parameter. |
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
CreateNURBSSurface
Create a new NURBS surface.
[HandleProcessCorruptedStateExceptions]public uint CreateNURBSSurface(int degreeU, int degreeV, DoubleList knotsU, DoubleList knotsV, Point3List poles, DoubleList weights = null)
Parameters
Type | Name | Description |
|---|---|---|
| int | degreeU | U degree. |
| int | degreeV | V degree. |
| DoubleList | knotsU | Knots on U. |
| DoubleList | knotsV | Knots on V. |
| Point3List | poles | Poles list. |
| DoubleList | weights | Weights list. |
Returns
Type | Description |
|---|---|
| uint |
CreateOffsetSurface
Create a new offset surface.
[HandleProcessCorruptedStateExceptions]public uint CreateOffsetSurface(uint baseSurface, double distance)
Parameters
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
CreateRuledSurface
Create a new ruled surface.
[HandleProcessCorruptedStateExceptions]public uint CreateRuledSurface(uint firstCurve, uint secondCurve)
Parameters
Returns
Type | Description |
|---|---|
| uint |
CreateSphereSurface
Create a new sphere surface.
[HandleProcessCorruptedStateExceptions]public uint CreateSphereSurface(double radius, Matrix4 matrix = null)
Parameters
Returns
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| uint |
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
Type | Description |
|---|---|
| bool |