Class CADInterface
Inherited Members
Namespace: UnityEngine.Pixyz.CAD
Syntax
public class CADInterface : Interface
Methods
AddBodyToModel(uint, uint)
Add a body to the model
Declaration
[HandleProcessCorruptedStateExceptions]
public void AddBodyToModel(uint body, uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | body | Body added to the model |
uint | model | Model |
AddEdgeToModel(uint, uint)
Add an edge to the model
Declaration
[HandleProcessCorruptedStateExceptions]
public void AddEdgeToModel(uint edge, uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | edge | Edge added to the model |
uint | model | Model |
AddOpenShellToModel(uint, uint)
Add an open shell to the model
Declaration
[HandleProcessCorruptedStateExceptions]
public void AddOpenShellToModel(uint shell, uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | shell | Open shell added to the model |
uint | model | Model |
AddPrecisionArea(uint, AABR)
Define a working area on the 2D projection of the surface to define a parametric precision
Declaration
[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 |
AddVertexToModel(uint, uint)
Add a vertex to the model
Declaration
[HandleProcessCorruptedStateExceptions]
public void AddVertexToModel(uint vtx, uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | vtx | Vertex added to the model |
uint | model | Model |
BuildFaces(uint, LoopList)
Build faces from a surface and a set of loop
Declaration
[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 |
ConfigureFunctionLogger(string, bool, bool, bool)
Declaration
[HandleProcessCorruptedStateExceptions]
public void ConfigureFunctionLogger(string functionName, bool enableFunction, bool enableParameters, bool enableExecutionTime)
Parameters
Type | Name | Description |
---|---|---|
string | functionName | |
bool | enableFunction | |
bool | enableParameters | |
bool | enableExecutionTime |
CreateBRepCone(double, double, Matrix4)
Creates a BRep Cone whose axis is the Z axis centered on O
Declaration
[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(double, Matrix4)
Creates a BRep Cube
Declaration
[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
Type | Description |
---|---|
uint |
CreateBRepCylinder(double, double, Matrix4)
Creates a BRep Cylinder aligned on the Z axis centered on O
Declaration
[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(double, double, Matrix4)
Creates a BRep Plane whose normal is the Z axis centered on O
Declaration
[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(double, Matrix4)
Creates a BRep Sphere centered on O and whose singularities are on the Z axis
Declaration
[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
Type | Description |
---|---|
uint |
CreateBRepTorus(double, double, Matrix4)
Creates a BRep Torus whose axis is the Z axis centered on O
Declaration
[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 |
CreateBezierCurve(Point3List)
Create a Bezier curve
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateBezierCurve(Point3List poles)
Parameters
Type | Name | Description |
---|---|---|
Point3List | poles | Poles list |
Returns
Type | Description |
---|---|
uint |
CreateBezierSurface(int, int, Point3List)
Create a new bezier surface
Declaration
[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 |
CreateBody(uint, ClosedShellList)
Create a body from a surface
Declaration
[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 |
CreateBoundedLinearExtrusionBody(ProfileBase, Point3, Point3, Point3, Point3, ExtrusionBoundaryType, ProfileBase)
create a linear extrusion body
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateBoundedLinearExtrusionBody(ProfileBase profileBase, Point3 direction, Point3 planeOrigin, Point3 planeNormal, Point3 startTangent, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type | Name | Description |
---|---|---|
ProfileBase | profileBase | Profile loops to revolve |
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 |
Point3 | startTangent | The starting tangent corresponding of the normal of the plane in which all profile lie |
ExtrusionBoundaryType | boundaryType | If the profile curves define an area or not |
ProfileBase | profileEnd | The end profile of the extrusion |
Returns
Type | Description |
---|---|
uint |
CreateCircleCurve(double, Matrix4)
Create a new circle
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateCircleCurve(double radius, Matrix4 matrix)
Parameters
Type | Name | Description |
---|---|---|
double | radius | Circle radius |
Matrix4 | matrix | Transformation matrix |
Returns
Type | Description |
---|---|
uint |
CreateClosedShell(FaceList, OrientationList)
Create a closedShell from a set of faces of a set of orientations
Declaration
[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(uint, bool, uint, uint, bool)
Create an coEdge with a edge and an orientation
Declaration
[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 |
CreateCompositeCurve(CurveList)
Create a composite curve from a list of limited curves
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateCompositeCurve(CurveList CurveList)
Parameters
Type | Name | Description |
---|---|---|
CurveList | CurveList | List of limited curves |
Returns
Type | Description |
---|---|
uint |
CreateConeSurface(double, double, Matrix4)
Create a new cone surface
Declaration
[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 |
CreateCosinusCurve(double, double, double, Matrix4)
Create a cosinus curve
Declaration
[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 |
CreateCurveExtrusionBody(ProfileBase, uint, Point3, ExtrusionBoundaryType, ProfileBase)
create a curve extrusion body
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateCurveExtrusionBody(ProfileBase profileBase, uint curve, Point3 startTangent, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type | Name | Description |
---|---|---|
ProfileBase | profileBase | Profile loops to revolve |
uint | curve | The profile curves will be extruded along this curve |
Point3 | startTangent | The starting tangent corresponding of the normal of the plane in which all profile lie |
ExtrusionBoundaryType | boundaryType | If the profile curves define an area or not |
ProfileBase | profileEnd | The end profile of the extrusion |
Returns
Type | Description |
---|---|
uint |
CreateCurveExtrusionSurface(uint, uint, uint)
Create a new curveExtrusion surface
Declaration
[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(double, Matrix4)
Create a new cylinder surface
Declaration
[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 |
CreateEdge(uint, uint, uint)
Create an edge with a curve an extremity vertices
Declaration
[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(uint)
Create an edge from a limited curve
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateEdgeFromCurve(uint curve)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | Limited curve used to create the edge |
Returns
Type | Description |
---|---|
uint |
CreateEdgeWithBounds(uint, uint, uint, Bounds1D)
Create an edge with a curve an extremity vertices and a given boundary
Declaration
[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 |
CreateEllipseCurve(double, double, Matrix4)
Create an ellipse curve
Declaration
[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 |
CreateEllipticConeSurface(double, double, double, Matrix4)
Create a new elliptic cone surface
Declaration
[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 |
CreateFace(uint, LoopList, bool)
Create a face from a surface
Declaration
[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 |
CreateHelixCurve(double, double, Matrix4, bool)
Create an helix curve
Declaration
[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(Point3, Point3, Point3, Point3)
Create a Hermite Curve
Declaration
[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(double, double, Matrix4)
Create an hyperBola curve
Declaration
[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(uint, uint, uint, double, double)
Create a Intersection Curve
Declaration
[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(Point3, Point3)
Create a Line Curve
Declaration
[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 |
CreateLinearExtrusionBody(ProfileBase, Point3, double, Point3, ExtrusionBoundaryType, ProfileBase)
create a linear extrusion body
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateLinearExtrusionBody(ProfileBase profileBase, Point3 direction, double depth, Point3 startTangent, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type | Name | Description |
---|---|---|
ProfileBase | profileBase | Profile loops to revolve |
Point3 | direction | The profile curves will be extruded in this direction |
double | depth | The extrusion will stop at the defined depth |
Point3 | startTangent | The starting tangent corresponding of the normal of the plane in which all profile lie |
ExtrusionBoundaryType | boundaryType | If the profile curves define an area or not |
ProfileBase | profileEnd | The end profile of the extrusion |
Returns
Type | Description |
---|---|
uint |
CreateLoop(CoEdgeList, bool, bool)
Create a loop from a set of edges of a set of orientations
Declaration
[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(uint)
Create a loop from a finite curve
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateLoopFromCurve(uint curve)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve to create the loop with |
Returns
Type | Description |
---|---|
uint |
CreateModel(double)
Create a new model
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateModel(double precision = -1)
Parameters
Type | Name | Description |
---|---|---|
double | precision | CAD precision for this model |
Returns
Type | Description |
---|---|
uint |
CreateMultiExtrusionBody(ProfileBaseList, CurveListList, ExtrusionBoundaryType)
create a linear extrusion body
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateMultiExtrusionBody(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 |
CreateNURBSCurve(int, DoubleList, Point3List, DoubleList)
Create a NURBS curve
Declaration
[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 |
CreateNURBSSurface(int, int, DoubleList, DoubleList, Point3List, DoubleList)
Create a new NURBS surface
Declaration
[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(uint, double)
Create a new offset surface
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateOffsetSurface(uint baseSurface, double distance)
Parameters
Type | Name | Description |
---|---|---|
uint | baseSurface | The base surface |
double | distance | The offset distance |
Returns
Type | Description |
---|---|
uint |
CreateOpenShell(FaceList, OrientationList)
Create a openShell from a set of faces of a set of orientations and set of loops
Declaration
[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 |
CreateParabolaCurve(double, Matrix4)
Create an parabola curve
Declaration
[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 |
CreatePlaneSurface(Matrix4)
Create a new plane surface
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreatePlaneSurface(Matrix4 matrix = null)
Parameters
Type | Name | Description |
---|---|---|
Matrix4 | matrix | Positionning matrix of the plane |
Returns
Type | Description |
---|---|
uint |
CreatePolylineCurve(Point3List, DoubleList)
Create a Polyline curve
Declaration
[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 |
CreateRevolutionSurface(uint, Point3, Point3, double, double)
Create a new revolution surface
Declaration
[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 |
CreateRevolveExtrusionBody(ProfileBase, Point3, Point3, double, Point3, ExtrusionBoundaryType, ProfileBase)
create a revolved extrusion body
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateRevolveExtrusionBody(ProfileBase profileBase, Point3 center, Point3 axis, double angle, Point3 startTangent, ExtrusionBoundaryType boundaryType = ExtrusionBoundaryType.Full, ProfileBase profileEnd = null)
Parameters
Type | Name | Description |
---|---|---|
ProfileBase | profileBase | Profile loops to revolve |
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 |
Point3 | startTangent | The starting tangent corresponding of the normal of the plane in which all profile lie |
ExtrusionBoundaryType | boundaryType | If the profile curves define an area or not |
ProfileBase | profileEnd | The end profile of the extrusion |
Returns
Type | Description |
---|---|
uint |
CreateRuledSurface(uint, uint)
Create a new ruled surface
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateRuledSurface(uint firstCurve, uint secondCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | firstCurve | First Curve |
uint | secondCurve | Seconde Curve |
Returns
Type | Description |
---|---|
uint |
CreateSegmentCurve(Point3, Point3)
Create a segment curve from two given points
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateSegmentCurve(Point3 firstPoint, Point3 secondPoint)
Parameters
Type | Name | Description |
---|---|---|
Point3 | firstPoint | First point |
Point3 | secondPoint | Second point |
Returns
Type | Description |
---|---|
uint |
CreateSphereSurface(double, Matrix4)
Create a new sphere surface
Declaration
[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
Type | Description |
---|---|
uint |
CreateSurfacicCurve(uint, uint)
Create a curve from a surface
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateSurfacicCurve(uint surface, uint curve2D)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | Surface to bound |
uint | curve2D | Curve to project |
Returns
Type | Description |
---|---|
uint |
CreateTabulatedCylinderSurface(uint, Point3, double, double)
Create a new tabulated cylinder surface
Declaration
[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(double, double, Matrix4)
Create a new torus surface
Declaration
[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 |
CreateTransformedCurve(uint, Matrix4)
Create a curve from a surface
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateTransformedCurve(uint curve, Matrix4 matrix)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | Curve to transform |
Matrix4 | matrix | Matrix of the transformation |
Returns
Type | Description |
---|---|
uint |
CreateVertex(Point3)
Create a vertex from a position
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateVertex(Point3 position)
Parameters
Type | Name | Description |
---|---|---|
Point3 | position | Vertex position |
Returns
Type | Description |
---|---|
uint |
EndThreadBrepSession()
Create a new BrepSession on current thread
Declaration
[HandleProcessCorruptedStateExceptions]
public void EndThreadBrepSession()
EvalCurvatureOnCurve(uint, double)
evaluate curvature on a curve
Declaration
[HandleProcessCorruptedStateExceptions]
public double EvalCurvatureOnCurve(uint curve, double parameter)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve |
double | parameter | Parameter to evaluate |
Returns
Type | Description |
---|---|
double |
EvalCurvatureOnSurface(uint, Point2)
evaluate main curvatures on a surface
Declaration
[HandleProcessCorruptedStateExceptions]
public Curvatures EvalCurvatureOnSurface(uint surface, Point2 parameter)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | The surface |
Point2 | parameter | Parameter to evaluate |
Returns
Type | Description |
---|---|
Curvatures |
EvalOnCurve(uint, double, int)
evaluate a point and derivatives on a curve
Declaration
[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(uint, Point2, int)
evaluate a point and derivatives on a surface
Declaration
[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 |
GetAllModelFaces(uint)
Get all the face of a model recursively
Declaration
[HandleProcessCorruptedStateExceptions]
public FaceList GetAllModelFaces(uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | model | Model |
Returns
Type | Description |
---|---|
FaceList |
GetBodyClosedShells(uint)
get all closedShells contain in the body
Declaration
[HandleProcessCorruptedStateExceptions]
public ClosedShellList GetBodyClosedShells(uint body)
Parameters
Type | Name | Description |
---|---|---|
uint | body | The body |
Returns
Type | Description |
---|---|
ClosedShellList |
GetCircleCurveDefinition(uint)
get all parameters contained in the circleCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetCircleCurveDefinitionReturn GetCircleCurveDefinition(uint circleCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | circleCurve | The circleCurve |
Returns
Type | Description |
---|---|
GetCircleCurveDefinitionReturn |
GetClosedShellOrientedFaces(uint)
get all orienteFaces contain in the closedShell
Declaration
[HandleProcessCorruptedStateExceptions]
public OrientedFaceList GetClosedShellOrientedFaces(uint closedShell)
Parameters
Type | Name | Description |
---|---|---|
uint | closedShell | The closedShell |
Returns
Type | Description |
---|---|
OrientedFaceList |
GetCoEdgeDefinition(uint)
get all parameters contained in the coEdge
Declaration
[HandleProcessCorruptedStateExceptions]
public GetCoEdgeDefinitionReturn GetCoEdgeDefinition(uint coEdge)
Parameters
Type | Name | Description |
---|---|---|
uint | coEdge | The coEdge |
Returns
Type | Description |
---|---|
GetCoEdgeDefinitionReturn |
GetCompositeCurveDefinition(uint)
get all parameters contained in the compositeCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetCompositeCurveDefinitionReturn GetCompositeCurveDefinition(uint compositeCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | compositeCurve | The compositeCurve |
Returns
Type | Description |
---|---|
GetCompositeCurveDefinitionReturn |
GetConeSurfaceDefinition(uint)
get all parameters contained in the coneSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetConeSurfaceDefinitionReturn GetConeSurfaceDefinition(uint coneSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | coneSurface | The coneSurface |
Returns
Type | Description |
---|---|
GetConeSurfaceDefinitionReturn |
GetCurveExtrusionSurfaceDefinition(uint)
get all parameters contained in the curveExtrusionSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetCurveExtrusionSurfaceDefinitionReturn GetCurveExtrusionSurfaceDefinition(uint curveExtrusionSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | curveExtrusionSurface | The curveExtrusionSurface |
Returns
Type | Description |
---|---|
GetCurveExtrusionSurfaceDefinitionReturn |
GetCurveLength(uint)
returns the length of the curve
Declaration
[HandleProcessCorruptedStateExceptions]
public double GetCurveLength(uint curve)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve |
Returns
Type | Description |
---|---|
double |
GetCurveLimits(uint)
get the parametric space limits of a curve
Declaration
[HandleProcessCorruptedStateExceptions]
public Bounds1D GetCurveLimits(uint curve)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve |
Returns
Type | Description |
---|---|
Bounds1D |
GetCylinderSurfaceDefinition(uint)
get all parameters contained in the cylinderSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetCylinderSurfaceDefinitionReturn GetCylinderSurfaceDefinition(uint cylinderSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | cylinderSurface | The cylinderSurface |
Returns
Type | Description |
---|---|
GetCylinderSurfaceDefinitionReturn |
GetEdgeDefinition(uint)
get all parameters contained in the edge
Declaration
[HandleProcessCorruptedStateExceptions]
public GetEdgeDefinitionReturn GetEdgeDefinition(uint edge)
Parameters
Type | Name | Description |
---|---|---|
uint | edge | The edge |
Returns
Type | Description |
---|---|
GetEdgeDefinitionReturn |
GetEdgeLength(uint)
returns the length of the edge
Declaration
[HandleProcessCorruptedStateExceptions]
public double GetEdgeLength(uint edge)
Parameters
Type | Name | Description |
---|---|---|
uint | edge | The edge |
Returns
Type | Description |
---|---|
double |
GetEdgeMaterial(uint)
Get the material of the edge, if any
Declaration
[HandleProcessCorruptedStateExceptions]
public uint GetEdgeMaterial(uint edge)
Parameters
Type | Name | Description |
---|---|---|
uint | edge |
Returns
Type | Description |
---|---|
uint |
GetEllipseCurveDefinition(uint)
get all parameters contained in the ellipseCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetEllipseCurveDefinitionReturn GetEllipseCurveDefinition(uint ellipseCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | ellipseCurve | The ellipseCurve |
Returns
Type | Description |
---|---|
GetEllipseCurveDefinitionReturn |
GetEllipticConeSurfaceDefinition(uint)
get all parameters contained in the ellipticConeSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetEllipticConeSurfaceDefinitionReturn GetEllipticConeSurfaceDefinition(uint ellipticConeSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | ellipticConeSurface | The EllipticConeSurface |
Returns
Type | Description |
---|---|
GetEllipticConeSurfaceDefinitionReturn |
GetFaceDefinition(uint)
get all parameters contain in the face
Declaration
[HandleProcessCorruptedStateExceptions]
public GetFaceDefinitionReturn GetFaceDefinition(uint face)
Parameters
Type | Name | Description |
---|---|---|
uint | face | The face |
Returns
Type | Description |
---|---|
GetFaceDefinitionReturn |
GetFaceMaterial(uint)
get the material on a face
Declaration
[HandleProcessCorruptedStateExceptions]
public uint GetFaceMaterial(uint face)
Parameters
Type | Name | Description |
---|---|---|
uint | face | The face |
Returns
Type | Description |
---|---|
uint |
GetFaceParametricBoundaries(uint)
get parametric definition of each face loop
Declaration
[HandleProcessCorruptedStateExceptions]
public Point2ListList GetFaceParametricBoundaries(uint face)
Parameters
Type | Name | Description |
---|---|---|
uint | face | The face |
Returns
Type | Description |
---|---|
Point2ListList |
GetHelixCurveDefinition(uint)
get all parameters contained in the helixCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetHelixCurveDefinitionReturn GetHelixCurveDefinition(uint helixCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | helixCurve | The helixCurve |
Returns
Type | Description |
---|---|
GetHelixCurveDefinitionReturn |
GetHermiteCurveDefinition(uint)
get all parameters contained in the hermiteCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetHermiteCurveDefinitionReturn GetHermiteCurveDefinition(uint hermiteCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | hermiteCurve | The HermiteCurve |
Returns
Type | Description |
---|---|
GetHermiteCurveDefinitionReturn |
GetHyperbolaCurveDefinition(uint)
get all parameters contained in the hyperbolaCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetHyperbolaCurveDefinitionReturn GetHyperbolaCurveDefinition(uint hyperbolaCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | hyperbolaCurve | The hyperbolaCurve |
Returns
Type | Description |
---|---|
GetHyperbolaCurveDefinitionReturn |
GetIntersectionCurveDefinition(uint)
get all parameters contained in the intersectionCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetIntersectionCurveDefinitionReturn GetIntersectionCurveDefinition(uint intersectionCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | intersectionCurve | The intersectionCurve |
Returns
Type | Description |
---|---|
GetIntersectionCurveDefinitionReturn |
GetLastError()
Declaration
public static string GetLastError()
Returns
Type | Description |
---|---|
string |
GetLineCurveDefinition(uint)
get all parameters contain in the lineCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetLineCurveDefinitionReturn GetLineCurveDefinition(uint lineCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | lineCurve | The lineCurve |
Returns
Type | Description |
---|---|
GetLineCurveDefinitionReturn |
GetLoopCoEdges(uint)
get all coEdges contain in the loop
Declaration
[HandleProcessCorruptedStateExceptions]
public CoEdgeList GetLoopCoEdges(uint loop)
Parameters
Type | Name | Description |
---|---|---|
uint | loop | The loop |
Returns
Type | Description |
---|---|
CoEdgeList |
GetModelBodies(uint)
Get the list of bodies contained in a model
Declaration
[HandleProcessCorruptedStateExceptions]
public BodyList GetModelBodies(uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | model | Model |
Returns
Type | Description |
---|---|
BodyList |
GetModelBoundaries(uint)
Get boundary edges of a model grouped by cycles
Declaration
[HandleProcessCorruptedStateExceptions]
public EdgeListList GetModelBoundaries(uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | model | Model |
Returns
Type | Description |
---|---|
EdgeListList |
GetModelEdges(uint)
Get the list of free edges contained in a model
Declaration
[HandleProcessCorruptedStateExceptions]
public EdgeList GetModelEdges(uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | model | Model |
Returns
Type | Description |
---|---|
EdgeList |
GetModelOpenShells(uint)
Get the list of open shells contained in a model
Declaration
[HandleProcessCorruptedStateExceptions]
public OpenShellList GetModelOpenShells(uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | model | Model |
Returns
Type | Description |
---|---|
OpenShellList |
GetModelPrecision(uint)
Get the precision used in a model
Declaration
[HandleProcessCorruptedStateExceptions]
public double GetModelPrecision(uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | model | Model |
Returns
Type | Description |
---|---|
double |
GetModelVertices(uint)
Get the list of free vertices contained in a model
Declaration
[HandleProcessCorruptedStateExceptions]
public VertexList GetModelVertices(uint model)
Parameters
Type | Name | Description |
---|---|---|
uint | model | Model |
Returns
Type | Description |
---|---|
VertexList |
GetNURBSCurveDefinition(uint)
get all parameters contained in the nurbsCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetNURBSCurveDefinitionReturn GetNURBSCurveDefinition(uint nurbsCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | nurbsCurve | The nurbsCurve |
Returns
Type | Description |
---|---|
GetNURBSCurveDefinitionReturn |
GetNURBSSurfaceDefinition(uint)
get all parameters contained in the nurbsSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetNURBSSurfaceDefinitionReturn GetNURBSSurfaceDefinition(uint nurbsSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | nurbsSurface | The nurbsSurface |
Returns
Type | Description |
---|---|
GetNURBSSurfaceDefinitionReturn |
GetOffsetCurveDefinition(uint)
get all parameters contained in the offsetCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetOffsetCurveDefinitionReturn GetOffsetCurveDefinition(uint offsetCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | offsetCurve | The offsetCurve |
Returns
Type | Description |
---|---|
GetOffsetCurveDefinitionReturn |
GetOffsetSurfaceDefinition(uint)
get all parameters contained in the offsetSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetOffsetSurfaceDefinitionReturn GetOffsetSurfaceDefinition(uint offsetSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | offsetSurface | The offsetSurface |
Returns
Type | Description |
---|---|
GetOffsetSurfaceDefinitionReturn |
GetOpenShellOrientedFaces(uint)
get all orienteFaces contain in the openShell
Declaration
[HandleProcessCorruptedStateExceptions]
public OrientedFaceList GetOpenShellOrientedFaces(uint openShell)
Parameters
Type | Name | Description |
---|---|---|
uint | openShell | The openShell |
Returns
Type | Description |
---|---|
OrientedFaceList |
GetParabolaCurveDefinition(uint)
get all parameters contained in the parabolaCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetParabolaCurveDefinitionReturn GetParabolaCurveDefinition(uint parabolaCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | parabolaCurve | The parabolaCurve |
Returns
Type | Description |
---|---|
GetParabolaCurveDefinitionReturn |
GetParametricPrecisionOnSurface(uint, double)
returns the parametric precision of a surface from the input precision
Declaration
[HandleProcessCorruptedStateExceptions]
public double GetParametricPrecisionOnSurface(uint surface, double precision)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | The surface |
double | precision | Input precision |
Returns
Type | Description |
---|---|
double |
GetPlaneSurfaceDefinition(uint)
get all parameters contained in the planeSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public Matrix4 GetPlaneSurfaceDefinition(uint planeSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | planeSurface | The planeSurface |
Returns
Type | Description |
---|---|
Matrix4 |
GetPolylineCurveDefinition(uint)
get all parameters contained in the polylinCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetPolylineCurveDefinitionReturn GetPolylineCurveDefinition(uint polylineCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | polylineCurve | The polylineCurve |
Returns
Type | Description |
---|---|
GetPolylineCurveDefinitionReturn |
GetPrecision()
Get the CAD precision
Declaration
[HandleProcessCorruptedStateExceptions]
public double GetPrecision()
Returns
Type | Description |
---|---|
double |
GetReferencers(uint)
Returns the entities referencing a given CAD entity
Declaration
[HandleProcessCorruptedStateExceptions]
public EntityList GetReferencers(uint entity)
Parameters
Type | Name | Description |
---|---|---|
uint | entity | CAD entity to get the referencers |
Returns
Type | Description |
---|---|
EntityList |
GetRevolutionSurfaceDefinition(uint)
get all parameters contained in the revolutionSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetRevolutionSurfaceDefinitionReturn GetRevolutionSurfaceDefinition(uint revolutionSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | revolutionSurface | The revolutionSurface |
Returns
Type | Description |
---|---|
GetRevolutionSurfaceDefinitionReturn |
GetRuledSurfaceDefinition(uint)
get all parameters contained in the ruledSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetRuledSurfaceDefinitionReturn GetRuledSurfaceDefinition(uint ruledSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | ruledSurface | The ruledSurface |
Returns
Type | Description |
---|---|
GetRuledSurfaceDefinitionReturn |
GetSegmentCurveDefinition(uint)
get all parameters contained in the segmentCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetSegmentCurveDefinitionReturn GetSegmentCurveDefinition(uint segmentCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | segmentCurve | The segmentCurve |
Returns
Type | Description |
---|---|
GetSegmentCurveDefinitionReturn |
GetSphereSurfaceDefinition(uint)
get all parameters contained in the sphereSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetSphereSurfaceDefinitionReturn GetSphereSurfaceDefinition(uint sphereSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | sphereSurface | The sphereSurface |
Returns
Type | Description |
---|---|
GetSphereSurfaceDefinitionReturn |
GetSurfaceLimits(uint)
get the parametric space limits of a surface
Declaration
[HandleProcessCorruptedStateExceptions]
public Bounds2D GetSurfaceLimits(uint surface)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | The surface |
Returns
Type | Description |
---|---|
Bounds2D |
GetSurfacicCurveDefinition(uint)
get all parameters contained in the surfacicCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetSurfacicCurveDefinitionReturn GetSurfacicCurveDefinition(uint surfacicCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | surfacicCurve | The surfacicCurve |
Returns
Type | Description |
---|---|
GetSurfacicCurveDefinitionReturn |
GetTabulatedCylinderSurfaceDefinition(uint)
get all parameters contained in the TabulatedCylinderSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetTabulatedCylinderSurfaceDefinitionReturn GetTabulatedCylinderSurfaceDefinition(uint tabulatedCylinderSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | tabulatedCylinderSurface | The tabulatedCylinderSurface |
Returns
Type | Description |
---|---|
GetTabulatedCylinderSurfaceDefinitionReturn |
GetTorusSurfaceDefinition(uint)
get all parameters contained in the torusSurface
Declaration
[HandleProcessCorruptedStateExceptions]
public GetTorusSurfaceDefinitionReturn GetTorusSurfaceDefinition(uint torusSurface)
Parameters
Type | Name | Description |
---|---|---|
uint | torusSurface | The torusSurface |
Returns
Type | Description |
---|---|
GetTorusSurfaceDefinitionReturn |
GetTransformedCurveDefinition(uint)
get all parameters contained in the transformedCurve
Declaration
[HandleProcessCorruptedStateExceptions]
public GetTransformedCurveDefinitionReturn GetTransformedCurveDefinition(uint transformedCurve)
Parameters
Type | Name | Description |
---|---|---|
uint | transformedCurve | The transformedCurve |
Returns
Type | Description |
---|---|
GetTransformedCurveDefinitionReturn |
GetVertexPosition(uint)
get the position of the vertex
Declaration
[HandleProcessCorruptedStateExceptions]
public Point3 GetVertexPosition(uint vertex)
Parameters
Type | Name | Description |
---|---|---|
uint | vertex | The vertex |
Returns
Type | Description |
---|---|
Point3 |
InvertCoEdge(uint)
Invert a coedge
Declaration
[HandleProcessCorruptedStateExceptions]
public void InvertCoEdge(uint coedge)
Parameters
Type | Name | Description |
---|---|---|
uint | coedge | The coedge to invert |
InvertCurve(uint, double)
Invert a curve parametricaly
Declaration
[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 |
InvertFaces(FaceList, bool)
Invert faces
Declaration
[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(uint)
Invert a loop
Declaration
[HandleProcessCorruptedStateExceptions]
public void InvertLoop(uint loop)
Parameters
Type | Name | Description |
---|---|---|
uint | loop | The loop to invert |
InvertOnCurve(uint, Point3, double)
invert a point to a curve
Declaration
[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(uint, Point3, double)
invert a point to a surface
Declaration
[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(uint)
if the curve is closed, return true, return false otherwise
Declaration
[HandleProcessCorruptedStateExceptions]
public bool IsCurveClosed(uint curve)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve |
Returns
Type | Description |
---|---|
bool |
IsCurveFinite(uint)
if the curve is finite return true, return false otherwise
Declaration
[HandleProcessCorruptedStateExceptions]
public bool IsCurveFinite(uint curve)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve |
Returns
Type | Description |
---|---|
bool |
IsCurvePeriodic(uint)
if the curve is periodic return true, return false otherwise
Declaration
[HandleProcessCorruptedStateExceptions]
public IsCurvePeriodicReturn IsCurvePeriodic(uint curve)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve |
Returns
Type | Description |
---|---|
IsCurvePeriodicReturn |
IsSurfaceClosed(uint)
return if the surface is closed on U or on V
Declaration
[HandleProcessCorruptedStateExceptions]
public IsSurfaceClosedReturn IsSurfaceClosed(uint surface)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | The surface |
Returns
Type | Description |
---|---|
IsSurfaceClosedReturn |
IsSurfaceFinite(uint)
return if the surface is finite
Declaration
[HandleProcessCorruptedStateExceptions]
public bool IsSurfaceFinite(uint surface)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | The surface |
Returns
Type | Description |
---|---|
bool |
IsSurfacePeriodic(uint)
return if the surface is periodic on U or on V
Declaration
[HandleProcessCorruptedStateExceptions]
public IsSurfacePeriodicReturn IsSurfacePeriodic(uint surface)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | The surface |
Returns
Type | Description |
---|---|
IsSurfacePeriodicReturn |
NeedPrecisionArea(uint)
tells if it needs a working area on the surface
Declaration
[HandleProcessCorruptedStateExceptions]
public bool NeedPrecisionArea(uint surface)
Parameters
Type | Name | Description |
---|---|---|
uint | surface | Surface to check if it needs precision area |
Returns
Type | Description |
---|---|
bool |
NeedTorusShapeCheck(uint, Point3List)
Returns true if the torus has a shape (lemon or apple) corresponding to the provided points
Declaration
[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(uint, Point3, double)
project a point to a curve
Declaration
[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(uint, Point3, double)
project a point to a surface
Declaration
[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(uint, uint)
Set the curve 2D value of a coEdge
Declaration
[HandleProcessCorruptedStateExceptions]
public void SetCoEdgeCurve2D(uint coEdge, uint curve2D)
Parameters
Type | Name | Description |
---|---|---|
uint | coEdge | The coEdge |
uint | curve2D | The new curve 2D |
SetCoEdgeSurface(uint, uint)
Set the surface value of a coEdge
Declaration
[HandleProcessCorruptedStateExceptions]
public void SetCoEdgeSurface(uint coEdge, uint surface)
Parameters
Type | Name | Description |
---|---|---|
uint | coEdge | The coEdge |
uint | surface | The new surface |
SetCurveLimits(uint, Bounds1D)
set the parametric space limits of a curve
Declaration
[HandleProcessCorruptedStateExceptions]
public void SetCurveLimits(uint curve, Bounds1D limits)
Parameters
Type | Name | Description |
---|---|---|
uint | curve | The curve |
Bounds1D | limits | Curve limits |
SetEdgeMaterial(uint, uint)
Define an edge's material
Declaration
[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 |
SetFaceMaterial(uint, uint)
set the material on a face
Declaration
[HandleProcessCorruptedStateExceptions]
public void SetFaceMaterial(uint face, uint material)
Parameters
Type | Name | Description |
---|---|---|
uint | face | The face |
uint | material | The material |
SetUnitLength(double)
Set the CAD unity length property
Declaration
[HandleProcessCorruptedStateExceptions]
public void SetUnitLength(double precision)
Parameters
Type | Name | Description |
---|---|---|
double | precision | Unit length |
SolidIntersection(uint, uint)
perform boolean operation intersection on two bodies (A ^ B)
Declaration
[HandleProcessCorruptedStateExceptions]
public BodyList SolidIntersection(uint A, uint B)
Parameters
Type | Name | Description |
---|---|---|
uint | A | The first body |
uint | B | The second body |
Returns
Type | Description |
---|---|
BodyList |
SolidSubtraction(uint, uint)
perform boolean operation subtraction on two bodies (A - B)
Declaration
[HandleProcessCorruptedStateExceptions]
public BodyList SolidSubtraction(uint A, uint B)
Parameters
Type | Name | Description |
---|---|---|
uint | A | The first body |
uint | B | The second body |
Returns
Type | Description |
---|---|
BodyList |
SolidUnion(uint, uint)
perform boolean operation union on two bodies (A + B)
Declaration
[HandleProcessCorruptedStateExceptions]
public BodyList SolidUnion(uint A, uint B)
Parameters
Type | Name | Description |
---|---|---|
uint | A | The first body |
uint | B | The second body |
Returns
Type | Description |
---|---|
BodyList |
StartThreadBrepSession(double)
Create a new BrepSession on current thread
Declaration
[HandleProcessCorruptedStateExceptions]
public void StartThreadBrepSession(double precision)
Parameters
Type | Name | Description |
---|---|---|
double | precision | CAD precision for this model |