I am trying modification of a shape consisting of planar faces. I have an issue there. I do not see any exceptions. The change just does not take effect. I have reduced my code to this:
Code: Select all
BRepBuilder_DG myBuilder;
…
IPlane_DG pln = (IPlane_DG)m_gen.Create("Plane_DG");
IBRepFace_DG f = myBuilder.CreateFace1(pln);
PointDg p0 = new PointDg();
PointDg p1 = new PointDg(1, 0, 0);
PointDg p2 = new PointDg(0, 1, 0);
IBRepWire_DG wire = myBuilder.CreateWire2(p0, p1, p2, true);
f.AddWire(wire);
IBRepEdge_DG e = wire.GetEdge(0);
IBRepVertex_DG v = wire.GetVertex(0);
myBuilder.ModifyVertex2(v, 0.1, e, f);
myModel.AddBRepShape(f as IBRepShape_DG);
Thanks in advance