IBRepBuilder_DG.CreateWire2()

Forum for reporting problems
Post Reply
Frank Costanza
Posts: 0
Joined: Thu Jun 27, 2019 4:16 am

IBRepBuilder_DG.CreateWire2()

Post by Frank Costanza »

Hello
I am having an exception on the last line in this code:

Code: Select all

_modl = _kernCAD.GetModel() as IModel_DG;
_iGener = _modl as IObjectGenerator_DG;
_iBuilder = _iGener.Create("BRepBuilder_DG") as IBRepBuilder_DG;
Point_DG p0 = new Point_DG() { x = new double[] { 0, 0, 0 } };
Point_DG p1 = new Point_DG() { x = new double[] { 1, 0, 0 } };
Point_DG p2 = new Point_DG() { x = new double[] { 0, 1, 0 } };
var wire = _iBuilder.CreateWire2(p0, p1, p2, true);
Is anything wrong here?
Thanks

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: IBRepBuilder_DG.CreateWire2()

Post by Prashant Kande »

Thanks for letting us know, Frank
We have fixed it already. It should be out in the next update
Cheers

Post Reply