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);
        }
Example #2
0
 public TopLoc_Datum3D(gp_Trsf T)
     : base()
 {
     throw new NotImplementedException();
 }
Example #3
0
 public Graphic3d_ArrayOfTriangles Create(double theRadius, int theNbSlices, int theNbStacks, gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public double ParametricTransformation(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public void Transform(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
 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();
 }
Example #7
0
 public bool TrsfToPoint(Bnd_Box theBox1, Bnd_Box theBox2, gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
 public AIS_AnimationObject(TCollection_AsciiString theAnimationName, AIS_InteractiveContext theContext,
                            AIS_InteractiveObject theObject, gp_Trsf theTrsfStart, gp_Trsf theTrsfEnd)
     : base()
 {
     throw new NotImplementedException();
 }
Example #9
0
 public bool IsOut(gp_Trsf T1, Bnd_Box Other, gp_Trsf T2)
 {
     throw new NotImplementedException();
 }
Example #10
0
 public Bnd_Box Transformed(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Example #11
0
 public Geom_Geometry Transformed(gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Example #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();
 }
Example #14
0
 public Bnd_B3f Transformed(gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
Example #15
0
 public bool IsIn(Bnd_B3f theBox, gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }
Example #16
0
 public void Append(gp_Trsf theItem)
 {
     throw new NotImplementedException();
 }
Example #17
0
 public void TransformParameters(ref double U, ref double V, gp_Trsf T)
 {
     throw new NotImplementedException();
 }
 public void Place(BRepFill_Section Sec, TopoDS_Wire W, gp_Trsf Trsf, ref double param)
 {
     throw new NotImplementedException();
 }
Example #19
0
 public bool TrsfToPoint(Bnd_Box theBox1, Bnd_Box theBox2, gp_Trsf theTrsf, gp_Pnt thePoint, double theCriteria)
 {
     throw new NotImplementedException();
 }
Example #20
0
 public gp_Trsf PoseXRToWorld(gp_Trsf thePoseXR)
 {
     throw new NotImplementedException();
 }
 public void Transforms(gp_Trsf theTrsf, double theX, double theY, double theZ, ref double theNewX,
                        ref double theNewY, ref double theNewZ)
 {
     throw new NotImplementedException();
 }
Example #22
0
 public void ComputeXRPosedCameraFromBase(Graphic3d_Camera theCam, gp_Trsf theXRTrsf)
 {
     throw new NotImplementedException();
 }
 public int handleXRMoveTo(AIS_InteractiveContext theCtx, V3d_View theView, gp_Trsf thePose, bool theToHighlight)
 {
     throw new NotImplementedException();
 }
Example #24
0
 public void ComputeXRBaseCameraFromPosed(Graphic3d_Camera theCamPosed, gp_Trsf thePoseTrsf)
 {
     throw new NotImplementedException();
 }
Example #25
0
 public double TransformedParameter(double U, gp_Trsf T)
 {
     throw new NotImplementedException();
 }
Example #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();
 }
Example #28
0
 public void InsertAfter(int theIndex, gp_Trsf theItem)
 {
     throw new NotImplementedException();
 }
Example #29
0
 public void SetValue(int theIndex, gp_Trsf theItem)
 {
     throw new NotImplementedException();
 }
 public void SetTrsf(gp_Trsf theTrsf)
 {
     throw new NotImplementedException();
 }