using System;
using System.Runtime.InteropServices;
namespace assembly
{
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;
}
double aRadius = 0.8;
ModelData_VectorList aPos = new ModelData_VectorList
{
};
for (int i = 0; i < aPos.Count; ++i)
{
}
return 0;
}
{
ModelData_Vectord aVector = theVector.Normalized();
}
{
return aFace;
}
{
return aFace;
}
{
{
{
if (aP1.Z() == (theLength * theDir.Z()))
{
theTopEdge = anEdge;
}
else
{
theBottomEdge = anEdge;
}
}
}
return aFace;
}
{
double aNutA = theRadius * 2, aNutB = theRadius * 1.5, aHeight = theRadius / 2;
return aNut;
}
{
double aMajorRadius = theRadius * 1.3;
double aLongLength = theRadius * 6;
double aShortLength = theRadius / 2;
aMajorRadius, aShortLength, ref aTopEdge, ref aMiddleOuterEdge);
theRadius, aLongLength, ref aBottomEdge, ref aMiddleInnerEdge);
return aBolt;
}
{
return aNutBoltAssembly;
}
}
}
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
Provides an interface to appearance which is a collection of visual styles.
Definition: ModelData_Appearance.hxx:39
Defines a group of scene graph element.
Definition: ModelData_Assembly.hxx:33
const ModelData_Instance & AddInstance(const ModelData_SceneGraphElement &theElement, const Base_UTF16String &theInstanceName=Base_UTF16String())
Adds a new child element into the assembly.
Definition: ModelData_Assembly.cxx:117
Defines a right-hand axis placement in 3D.
Definition: ModelData_Axis2Placement.hxx:38
Defines a right-handed or left-handed axis placement in 3D.
Definition: ModelData_Axis3Placement.hxx:38
Defines precise Boundary Representation of part.
Definition: ModelData_BRepRepresentation.hxx:39
void SetAppearance(const ModelData_Shape &theSubshape, const ModelData_Appearance &theAppearance)
Definition: ModelData_BRepRepresentation.cxx:698
Defines 3D circle.
Definition: ModelData_Circle.hxx:33
Defines an RGBA color (with alpha channel).
Definition: ModelData_Color.hxx:34
Defines a cylindrical surface.
Definition: ModelData_CylindricalSurface.hxx:32
Defines a 3D direction.
Definition: ModelData_Direction.hxx:180
Defines an edge.
Definition: ModelData_Edge.hxx:36
static const ModelData_Edge & Cast(const ModelData_Shape &theShape)
Casts a base class object to ModelData_Edge.
Definition: ModelData_Edge.cxx:688
ModelData_Vertex EndVertex() const
Returns a start vertex.
Definition: ModelData_Edge.cxx:622
ModelData_Vertex StartVertex() const
Returns a start vertex.
Definition: ModelData_Edge.cxx:613
Defines a topological face.
Definition: ModelData_Face.hxx:32
ModelData_Wire OuterWire() const
Returns outer wire.
Definition: ModelData_Face.cxx:266
bool Append(const ModelData_Wire &theWire)
Adds a wire to the face.
Definition: ModelData_Face.cxx:226
Defines an occurrence of assembly or part in a scene graph.
Definition: ModelData_Instance.hxx:34
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 plane.
Definition: ModelData_Plane.hxx:32
Defines a 3D point.
Definition: ModelData_Point.hxx:295
Iterates over subshapes in a shape.
Definition: ModelData_Shape.hxx:41
Base class of topological shapes.
Definition: ModelData_Shape.hxx:37
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 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 a 3D vector.
Definition: ModelData_Vector.hxx:442
Defines topological vertex.
Definition: ModelData_Vertex.hxx:31
ModelData_Point Point() const
Returns a 3D point this vertex resides at.
Definition: ModelData_Vertex.cxx:68
Defines a connected set of edges.
Definition: ModelData_Wire.hxx:31
Defines classes, types, and global functions related to CAD Exchanger.
Definition: A3DSTestLib.hxx:22
ModelData_ShapeType
Defines shape type.
Definition: ModelData_ShapeType.hxx:25