using System;
using System.Runtime.InteropServices;
namespace brepfeatures
{
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;
}
{
Console.WriteLine("Unable to save the model!");
return 1;
}
return 0;
}
}
}
Defines a Unicode (UTF-16) string wrapping a standard string.
Definition: Base_UTF16String.hxx:34
Creates B-Rep shapes using various feature modeling techniques.
Definition: ModelAlgo_BRepFeatures.hxx:44
static ModelData_Shape CreateExtrusion(const ModelData_Shape &theShape, const ModelData_Vector &theVec)
Creates an extrusion body.
Definition: ModelAlgo_BRepFeatures.cxx:84
static ModelData_Shape CreateRevolution(const ModelData_Shape &theShape, const ModelData_Axis1Placement &theAxis, double theAngle=2 *M_PI)
Creates a revolution body.
Definition: ModelAlgo_BRepFeatures.cxx:108
Defines an axis placement as a combination of point and direction.
Definition: ModelData_Axis1Placement.hxx:37
static const ModelData_Axis1Placement & OZ()
Returns an OZ axis.
Definition: ModelData_Axis1Placement.cxx:117
Defines precise Boundary Representation of part.
Definition: ModelData_BRepRepresentation.hxx:39
Defines a 3D direction.
Definition: ModelData_Direction.hxx:180
Defines an edge.
Definition: ModelData_Edge.hxx:36
Defines 3D line.
Definition: ModelData_Line.hxx:36
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:830
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:143
Defines a leaf node in the scene graph hiearchy.
Definition: ModelData_Part.hxx:35
Defines a 3D point.
Definition: ModelData_Point.hxx:295
Defines a 3D vector.
Definition: ModelData_Vector.hxx:442
Defines classes, types, and global functions related to CAD Exchanger.
Definition: A3DSTestLib.hxx:22