Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine(Environment.CurrentDirectory);

            IGESControl_Controller.Init();
            var writer = new IGESControl_Writer("MM", 0);

            var face = Toolkit.FromEdges(
                new Line3D(new Vector3D(0, 0, 0), new Vector3D(10, 0, 0)),
                new Line3D(new Vector3D(0, 10, 0), new Vector3D(30, 10, 0)));

            writer.AddShape(face);
            writer.AddShape(face.Offset(5, new Vector3D(0, 0, 1)));
            writer.AddShape(face.Offset(15, new Vector3D(0, 0, -1)));

            var tr = new gp_Trsf();

            tr.SetScale(new gp_Pnt(0, 0, 0), .5);
            writer.AddShape(new BRepBuilderAPI_Transform(face, tr, true).Shape());

            writer.ComputeModel();
            writer.Write("MyFile.igs");

            Process.Start(AppDomain.CurrentDomain.BaseDirectory);
        }
Ejemplo n.º 2
0
 public TopLoc_Datum3D(gp_Trsf T)
     : base()
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public Graphic3d_ArrayOfTriangles Create(double theRadius, int theNbSlices, int theNbStacks, gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public double ParametricTransformation(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 public void Transform(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public void TransformBoundaries(gp_Trsf theTrsf, ref double theXMin, ref double theYMin, ref double theZMin,
                                 ref double theXMax, ref double theYMax, ref double theZMax)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 7
0
 public bool TrsfToPoint(Bnd_Box theBox1, Bnd_Box theBox2, gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 8
0
 public AIS_AnimationObject(TCollection_AsciiString theAnimationName, AIS_InteractiveContext theContext,
                            AIS_InteractiveObject theObject, gp_Trsf theTrsfStart, gp_Trsf theTrsfEnd)
     : base()
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 9
0
 public bool IsOut(gp_Trsf T1, Bnd_Box Other, gp_Trsf T2)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 10
0
 public Bnd_Box Transformed(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 11
0
 public Geom_Geometry Transformed(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 12
0
 public void Connect(AIS_InteractiveObject theAnotherObj, gp_Trsf theLocation)
 {
     throw new NotImplementedException();
 }
 public BRepBuilderAPI_Transform(TopoDS_Shape S, gp_Trsf T)
     : base()
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 14
0
 public Bnd_B3f Transformed(gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 15
0
 public bool IsIn(Bnd_B3f theBox, gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 16
0
 public void Append(gp_Trsf theItem)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 17
0
 public void TransformParameters(ref double U, ref double V, gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 18
0
 public void Place(BRepFill_Section Sec, TopoDS_Wire W, gp_Trsf Trsf, ref double param)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 19
0
 public bool TrsfToPoint(Bnd_Box theBox1, Bnd_Box theBox2, gp_Trsf theTrsf, gp_Pnt thePoint, double theCriteria)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 20
0
 public gp_Trsf PoseXRToWorld(gp_Trsf thePoseXR)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 21
0
 public void Transforms(gp_Trsf theTrsf, double theX, double theY, double theZ, ref double theNewX,
                        ref double theNewY, ref double theNewZ)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 22
0
 public void ComputeXRPosedCameraFromBase(Graphic3d_Camera theCam, gp_Trsf theXRTrsf)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 23
0
 public int handleXRMoveTo(AIS_InteractiveContext theCtx, V3d_View theView, gp_Trsf thePose, bool theToHighlight)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 24
0
 public void ComputeXRBaseCameraFromPosed(Graphic3d_Camera theCamPosed, gp_Trsf thePoseTrsf)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 25
0
 public double TransformedParameter(double U, gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 26
0
 public void TurnViewXRCamera(gp_Trsf theTrsfTurn)
 {
     throw new NotImplementedException();
 }
 public void DisplaySensitive(SelectMgr_Selection theSel, gp_Trsf theTrsf, V3d_View theView)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 28
0
 public void InsertAfter(int theIndex, gp_Trsf theItem)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 29
0
 public void SetValue(int theIndex, gp_Trsf theItem)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 30
0
 public void SetTrsf(gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }