using System;
namespace brep
{
class edgeutil
{
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
};
}
{
};
double[] aKnots = { 0.0, 0.25, 0.75, 1.0 };
int[] aMultiplicities = { 3, 1, 1, 3 };
int aDegree = 2;
}
}
}
Defines a right-hand axis placement in 3D.
Definition: ModelData_Axis2Placement.hxx:38
Defines 3D B-Spline curve.
Definition: ModelData_BSplineCurve.hxx:34
Defines 3D Bezier curve.
Definition: ModelData_BezierCurve.hxx:36
Defines 3D circle.
Definition: ModelData_Circle.hxx:33
Defines a 3D direction.
Definition: ModelData_Direction.hxx:180
Defines an edge.
Definition: ModelData_Edge.hxx:36
Defines 3D ellipse.
Definition: ModelData_Ellipse.hxx:32
Defines 3D hyperbola.
Definition: ModelData_Hyperbola.hxx:32
Defines 3D line.
Definition: ModelData_Line.hxx:36
Defines 3D offset curve.
Definition: ModelData_OffsetCurve.hxx:33
Defines 3D parabola.
Definition: ModelData_Parabola.hxx:32
Defines a 3D point.
Definition: ModelData_Point.hxx:295
Defines classes, types, and global functions related to CAD Exchanger.
Definition: A3DSTestLib.hxx:22
using System;
namespace brep
{
class faceutil
{
{
}
{
return new ModelData_Face(aSurface, 0.0, Math.PI / 2, 0.0, Math.PI / 2);
}
{
}
{
}
{
}
{
};
}
{
};
return new ModelData_Face(aSurface, 0.0, Math.PI + Math.PI / 2, 0.1, 0.9);
}
{
};
}
{
};
}
{
};
int aUPoles = 5;
int aVPoles = 5;
double[] aUKnots = { 0.0, 0.25, 0.75, 1.0 };
double[] aVKnots = { 0.0, 0.25, 0.75, 1.0 };
int[] aVMultiplicities = { 3, 1, 1, 3 };
int[] aUMultiplicities = { 3, 1, 1, 3 };
int aUDegree = 2;
int aVDegree = 2;
aUMultiplicities, aVMultiplicities,
aUDegree, aVDegree);
}
{
return aFace;
}
}
}
Defines a right-handed or left-handed axis placement in 3D.
Definition: ModelData_Axis3Placement.hxx:38
Defines a B-Spline surface.
Definition: ModelData_BSplineSurface.hxx:34
Defines a Bezier surface.
Definition: ModelData_BezierSurface.hxx:34
Defines a conical surface.
Definition: ModelData_ConicalSurface.hxx:32
Defines a cylindrical surface.
Definition: ModelData_CylindricalSurface.hxx:32
static const ModelData_Edge & Cast(const ModelData_Shape &theShape)
Casts a base class object to ModelData_Edge.
Definition: ModelData_Edge.cxx:688
Defines a topological face.
Definition: ModelData_Face.hxx:32
bool Append(const ModelData_Wire &theWire)
Adds a wire to the face.
Definition: ModelData_Face.cxx:226
Defines an offset surface.
Definition: ModelData_OffsetSurface.hxx:32
Defines a plane.
Definition: ModelData_Plane.hxx:32
ModelData_Shape Reversed() const
Returns a shape that shares the same geometry and subshape graph but has opposite orientation.
Definition: ModelData_Shape.cxx:402
Defines a spherical surface.
Definition: ModelData_SphericalSurface.hxx:32
Defines a surface of linear extrusion.
Definition: ModelData_SurfaceOfLinearExtrusion.hxx:34
Defines a surface of revolution.
Definition: ModelData_SurfaceOfRevolution.hxx:35
Defines a toroidal surface.
Definition: ModelData_ToroidalSurface.hxx:32
Defines a connected set of edges.
Definition: ModelData_Wire.hxx:31
namespace brep
{
class bodyutil
{
{
return aBody;
}
{
return aBody;
}
{
return aBody;
}
{
return aBody;
}
}
}
Creates B-Rep solid primitives.
Definition: ModelAlgo_TopoPrimitives.hxx:43
static ModelData_Solid CreateBox(double theDx, double theDy, double theDz)
Creates a box.
Definition: ModelAlgo_TopoPrimitives.cxx:82
Defines a root topological shape that can be owned by B-Rep representation.
Definition: ModelData_Body.hxx:28
static ModelData_Body Create(const ModelData_Shape &theShape)
Creates a body from an arbitrary shape.
Definition: ModelData_Body.cxx:223
Defines a connected set of faces.
Definition: ModelData_Shell.hxx:31
bool Append(const ModelData_Face &theFace)
Adds a face to the shell.
Definition: ModelData_Shell.cxx:64
Defines a topological solid.
Definition: ModelData_Solid.hxx:31
Defines topological vertex.
Definition: ModelData_Vertex.hxx:31
bool Append(const ModelData_Edge &theEdge)
Adds an edge to the wire.
Definition: ModelData_Wire.cxx:64
using System;
using System.Runtime.InteropServices;
namespace brep
{
partial class Program
{
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool SetDllDirectory(string lpPathName);
static int Main(string[] args)
{
SetDllDirectory("../../../../../../win64/vc14.1/bin");
string aKey = LicenseKey.Value();
if (!LicenseManager.Activate(aKey))
{
Console.WriteLine("Failed to activate CAD Exchanger license.");
return 1;
}
ModelData_Edge anEdgeFromOffsetCurve = edgeutil.MakeEdgeFromOffSetCurve();
ModelData_Face aFaceFromLESurface = faceutil.MakeFaceFromSurfaceOfLinearExtrusion();
ModelData_Face aFaceFromRevSurface = faceutil.MakeFaceFromSurfaceOfRevolution();
ModelData_Face aFaceFromOffsetSurface = faceutil.MakeFaceFromOffsetSurface();
return 0;
}
{
}
}
}
Defines a Unicode (UTF-16) string wrapping a standard string.
Definition: Base_UTF16String.hxx:34
Defines precise Boundary Representation of part.
Definition: ModelData_BRepRepresentation.hxx:39
Provides CAD Exchanger data model.
Definition: ModelData_Model.hxx:43
const ModelData_SceneGraphElement & AddRoot(const ModelData_SceneGraphElement &theElement)
Adds new root element into the scene graph.
Definition: ModelData_Model.cxx:781
Writes any format that CAD Exchanger can export.
Definition: ModelData_ModelWriter.hxx:33
bool Write(const ModelData_Model &theModel, const Base_UTF16String &theFilePath)
Writes the specified model to the file at the specified path.
Definition: ModelData_ModelWriter.cxx:134
Defines a leaf node in the scene graph hiearchy.
Definition: ModelData_Part.hxx:35
Base class of topological shapes.
Definition: ModelData_Shape.hxx:37