docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CADInterface

    Inheritance
    object
    Interface
    CADInterface
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Pixyz.CAD
    Assembly: Unity.Pixyz.SDKPlus.Editor.dll
    Syntax
    public class CADInterface : Interface

    Methods

    Name Description
    AddBodyToModel(uint, uint)

    Add a body to the model

    AddEdgeToModel(uint, uint)

    Add an edge to the model

    AddOpenShellToModel(uint, uint)

    Add an open shell to the model

    AddPrecisionArea(uint, AABR)

    Define a working area on the 2D projection of the surface to define a parametric precision

    AddVertexToModel(uint, uint)

    Add a vertex to the model

    AreCurvesEquals(uint, uint)

    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

    BuildFaces(uint, LoopList)

    Build faces from a surface and a set of loop

    ConfigureFunctionLogger(string, bool, bool, bool)
    CreateBRepCone(double, double, Matrix4)

    Creates a BRep Cone whose axis is the Z axis centered on O

    CreateBRepCube(double, Matrix4)

    Creates a BRep Cube

    CreateBRepCylinder(double, double, Matrix4)

    Creates a BRep Cylinder aligned on the Z axis centered on O

    CreateBRepPlane(double, double, Matrix4)

    Creates a BRep Plane whose normal is the Z axis centered on O

    CreateBRepSphere(double, Matrix4)

    Creates a BRep Sphere centered on O and whose singularities are on the Z axis

    CreateBRepTorus(double, double, Matrix4)

    Creates a BRep Torus whose axis is the Z axis centered on O

    CreateBezierCurve(Point3List)

    Create a Bezier curve

    CreateBezierSurface(int, int, Point3List)

    Create a new bezier surface

    CreateBody(uint, ClosedShellList)

    Create a body from a surface

    CreateBoundedLinearExtrusion(Point3, Point3, Point3, ProfileBase, Point3, ExtrusionBoundaryType, ProfileBase)

    create a linear extrusion body

    CreateCircleCurve(double, Matrix4)

    Create a new circle

    CreateClosedShell(FaceList, OrientationList)

    Create a closedShell from a set of faces of a set of orientations

    CreateCoEdge(uint, bool, uint, uint, bool)

    Create an coEdge with a edge and an orientation

    CreateCompositeCurve(CurveList)

    Create a composite curve from a list of limited curves

    CreateConeSurface(double, double, Matrix4)

    Create a new cone surface

    CreateCosinusCurve(double, double, double, Matrix4)

    Create a cosinus curve

    CreateCurveExtrusion(uint, ProfileBase, Point3, ExtrusionBoundaryType, ProfileBase)

    create a curve extrusion body

    CreateCurveExtrusionSurface(uint, uint, uint)

    Create a new curveExtrusion surface

    CreateCylinderSurface(double, Matrix4)

    Create a new cylinder surface

    CreateEdge(uint, uint, uint)

    Create an edge with a curve an extremity vertices

    CreateEdgeFromCurve(uint)

    Create an edge from a limited curve

    CreateEdgeWithBounds(uint, uint, uint, Bounds1D)

    Create an edge with a curve an extremity vertices and a given boundary

    CreateEllipseCurve(double, double, Matrix4)

    Create an ellipse curve

    CreateEllipticConeSurface(double, double, double, Matrix4)

    Create a new elliptic cone surface

    CreateFace(uint, LoopList, bool)

    Create a face from a surface

    CreateHelixCurve(double, double, Matrix4, bool)

    Create an helix curve

    CreateHermiteCurve(Point3, Point3, Point3, Point3)

    Create a Hermite Curve

    CreateHyperbolaCurve(double, double, Matrix4)

    Create an hyperBola curve

    CreateIntersectionCurve(uint, uint, uint, double, double)

    Create a Intersection Curve

    CreateLineCurve(Point3, Point3)

    Create a Line Curve

    CreateLinearExtrusion(Point3, double, ProfileBase, Point3, ExtrusionBoundaryType, ProfileBase)

    create a linear extrusion body

    CreateLoop(CoEdgeList, bool, bool)

    Create a loop from a set of edges of a set of orientations

    CreateLoopFromCurve(uint)

    Create a loop from a finite curve

    CreateModel(double)

    Create a new model

    CreateMultiExtrusion(ProfileBaseList, CurveListList, ExtrusionBoundaryType)

    create a linear extrusion body

    CreateNURBSCurve(int, DoubleList, Point3List, DoubleList)

    Create a NURBS curve

    CreateNURBSSurface(int, int, DoubleList, DoubleList, Point3List, DoubleList)

    Create a new NURBS surface

    CreateOffsetSurface(uint, double)

    Create a new offset surface

    CreateOpenShell(FaceList, OrientationList)

    Create a openShell from a set of faces of a set of orientations and set of loops

    CreateParabolaCurve(double, Matrix4)

    Create an parabola curve

    CreatePlaneSurface(Matrix4)

    Create a new plane surface

    CreatePolylineCurve(Point3List, DoubleList)

    Create a Polyline curve

    CreateRevolutionSurface(uint, Point3, Point3, double, double)

    Create a new revolution surface

    CreateRevolveExtrusion(Point3, Point3, double, ProfileBase, Point3, ExtrusionBoundaryType, ProfileBase)

    create a revolved extrusion body

    CreateRuledSurface(uint, uint)

    Create a new ruled surface

    CreateSegmentCurve(Point3, Point3)

    Create a segment curve from two given points

    CreateSphereSurface(double, Matrix4)

    Create a new sphere surface

    CreateSurfacicCurve(uint, uint)

    Create a curve from a surface

    CreateTabulatedCylinderSurface(uint, Point3, double, double)

    Create a new tabulated cylinder surface

    CreateTorusSurface(double, double, Matrix4)

    Create a new torus surface

    CreateTransformedCurve(uint, Matrix4)

    Create a curve from a surface

    CreateVertex(Point3)

    Create a vertex from a position

    EndThreadBrepSession()

    Create a new BrepSession on current thread

    EvalCurvatureOnCurve(uint, double)

    evaluate curvature on a curve

    EvalCurvatureOnSurface(uint, Point2)

    evaluate main curvatures on a surface

    EvalOnCurve(uint, double, int)

    evaluate a point and derivatives on a curve

    EvalOnSurface(uint, Point2, int)

    evaluate a point and derivatives on a surface

    GetAllModelFaces(uint)

    Get all the face of a model recursively

    GetBodyClosedShells(uint)

    get all closedShells contain in the body

    GetCircleCurveDefinition(uint)

    get all parameters contained in the circleCurve

    GetClosedShellOrientedFaces(uint)

    get all orienteFaces contain in the closedShell

    GetCoEdgeDefinition(uint)

    get all parameters contained in the coEdge

    GetCompositeCurveDefinition(uint)

    get all parameters contained in the compositeCurve

    GetConeSurfaceDefinition(uint)

    get all parameters contained in the coneSurface

    GetCurveExtrusionSurfaceDefinition(uint)

    get all parameters contained in the curveExtrusionSurface

    GetCurveLength(uint)

    returns the length of the curve

    GetCurveLimits(uint)

    get the parametric space limits of a curve

    GetCylinderSurfaceDefinition(uint)

    get all parameters contained in the cylinderSurface

    GetEdgeDefinition(uint)

    get all parameters contained in the edge

    GetEdgeLength(uint)

    returns the length of the edge

    GetEdgeMaterial(uint)

    Get the material of the edge, if any

    GetEllipseCurveDefinition(uint)

    get all parameters contained in the ellipseCurve

    GetEllipticConeSurfaceDefinition(uint)

    get all parameters contained in the ellipticConeSurface

    GetFaceDefinition(uint)

    get all parameters contain in the face

    GetFaceMaterial(uint)

    get the material on a face

    GetFaceParametricBoundaries(uint)

    get parametric definition of each face loop

    GetHelixCurveDefinition(uint)

    get all parameters contained in the helixCurve

    GetHermiteCurveDefinition(uint)

    get all parameters contained in the hermiteCurve

    GetHyperbolaCurveDefinition(uint)

    get all parameters contained in the hyperbolaCurve

    GetIntersectionCurveDefinition(uint)

    get all parameters contained in the intersectionCurve

    GetLastError()
    GetLineCurveDefinition(uint)

    get all parameters contain in the lineCurve

    GetLoopCoEdges(uint)

    get all coEdges contain in the loop

    GetModelBodies(uint)

    Get the list of bodies contained in a model

    GetModelBoundaries(uint)

    Get boundary edges of a model grouped by cycles

    GetModelEdges(uint)

    Get the list of free edges contained in a model

    GetModelOpenShells(uint)

    Get the list of open shells contained in a model

    GetModelPrecision(uint)

    Get the precision used in a model

    GetModelVertices(uint)

    Get the list of free vertices contained in a model

    GetNURBSCurveDefinition(uint)

    get all parameters contained in the nurbsCurve

    GetNURBSSurfaceDefinition(uint)

    get all parameters contained in the nurbsSurface

    GetOffsetCurveDefinition(uint)

    get all parameters contained in the offsetCurve

    GetOffsetSurfaceDefinition(uint)

    get all parameters contained in the offsetSurface

    GetOpenShellOrientedFaces(uint)

    get all orienteFaces contain in the openShell

    GetParabolaCurveDefinition(uint)

    get all parameters contained in the parabolaCurve

    GetParametricPrecisionOnSurface(uint, double)

    returns the parametric precision of a surface from the input precision

    GetPlaneSurfaceDefinition(uint)

    get all parameters contained in the planeSurface

    GetPolylineCurveDefinition(uint)

    get all parameters contained in the polylinCurve

    GetPrecision()

    Get the CAD precision

    GetReferencers(uint)

    Returns the entities referencing a given CAD entity

    GetRevolutionSurfaceDefinition(uint)

    get all parameters contained in the revolutionSurface

    GetRuledSurfaceDefinition(uint)

    get all parameters contained in the ruledSurface

    GetSegmentCurveDefinition(uint)

    get all parameters contained in the segmentCurve

    GetSphereSurfaceDefinition(uint)

    get all parameters contained in the sphereSurface

    GetSurfaceLimits(uint)

    get the parametric space limits of a surface

    GetSurfacicCurveDefinition(uint)

    get all parameters contained in the surfacicCurve

    GetTabulatedCylinderSurfaceDefinition(uint)

    get all parameters contained in the TabulatedCylinderSurface

    GetTorusSurfaceDefinition(uint)

    get all parameters contained in the torusSurface

    GetTransformedCurveDefinition(uint)

    get all parameters contained in the transformedCurve

    GetUnitLength()

    Get the CAD unity length property

    GetVertexPosition(uint)

    get the position of the vertex

    InvertCoEdge(uint)

    Invert a coedge

    InvertCurve(uint, double)

    Invert a curve parametricaly

    InvertFaces(FaceList, bool)

    Invert faces

    InvertLoop(uint)

    Invert a loop

    InvertOnCurve(uint, Point3, double)

    invert a point to a curve

    InvertOnSurface(uint, Point3, double)

    invert a point to a surface

    IsCurveClosed(uint)

    if the curve is closed, return true, return false otherwise

    IsCurveFinite(uint)

    if the curve is finite return true, return false otherwise

    IsCurvePeriodic(uint)

    if the curve is periodic return true, return false otherwise

    IsSurfaceClosed(uint)

    return if the surface is closed on U or on V

    IsSurfaceFinite(uint)

    return if the surface is finite

    IsSurfacePeriodic(uint)

    return if the surface is periodic on U or on V

    NeedPrecisionArea(uint)

    tells if it needs a working area on the surface

    NeedTorusShapeCheck(uint, Point3List)

    Returns true if the torus has a shape (lemon or apple) corresponding to the provided points

    ProjectOnCurve(uint, Point3, double)

    project a point to a curve

    ProjectOnSurface(uint, Point3, double)

    project a point to a surface

    SetCoEdgeCurve2D(uint, uint)

    Set the curve 2D value of a coEdge

    SetCoEdgeSurface(uint, uint)

    Set the surface value of a coEdge

    SetCurveLimits(uint, Bounds1D)

    set the parametric space limits of a curve

    SetEdgeMaterial(uint, uint)

    Define an edge's material

    SetFaceMaterial(uint, uint)

    set the material on a face

    SetUnitLength(double)

    Set the CAD unity length property

    SolidIntersection(uint, uint)

    perform boolean operation intersection on two bodies (A ^ B)

    SolidSubtraction(uint, uint)

    perform boolean operation subtraction on two bodies (A - B)

    SolidUnion(uint, uint)

    perform boolean operation union on two bodies (A + B)

    StartThreadBrepSession(double)

    Create a new BrepSession on current thread

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)