> > Hi Jelle, > > Here is the latest result: > > (0.31577899999999998, -0.078945000000000001, 0.0) -> Line1 start point > (90.311844000015768, 29.919742999954227, 0.0) -> Line1 end point > (90.384789339801443, 29.933761195815848, 0.0) -> Circle1 curve start point > (81.100845000009201, 63.416477000251348, 0.0) -> Circle1 curve end point > (81.100845000000007, 63.416477000256997, 0.0) -> Line2 start point > (81.100845000000007, 90.032760999999994, 0.0) -> Line2 end point > (81.100845000000007, 90.032760999999994, 0.0) -> Line3 start point > (10.077653999966074, 9.1989700000342509, 0.0) -> Line3 end point > > The coordinates are OK, but circle center point cannot be displayed. If I > can get the center x,y and z value, we can close the issue. >
if edge is circle: from OCC.Utils.Common import adapt_edge_to_curve # https://github.com/tpaviot/pythonocc/blob/jf/KBE-refactor-merged/src/addons/Utils/Common.py c= adapt_edge_to_curve( edge.Circle() ) center = c.Position().Location() # gp_axe2, gp_pnt print center
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users