Is BRepOffsetAPI_MakeOffset possible for non-plannar surface?

Hi, Im trying to create edge offset from a spline surface, which is a new contour that still lies on the same surface. (it actually outside, but imagine if extended). Is this possible?
by the way, this has to be done on the xyz domain, not uv domain, aye?

Thank you
Kent

Cauchy Ding's picture

Hi Kent,

You can offset an edge on its parent face by its pcurve, I mean use Handle_Geom2d_OffsetCurve. However, it requires the pcurve must be C1 continuity. And If you want to offset a wire on its parent face, you must write the algorithm by yourself.

-Ding

Kent Zhou's picture

Thank you for your reply, since the offset should on a distance value at the cartesian coordinate. how am i suppose to achieve constant offset values when playing around on the uv domain?

thank you
kent

Cauchy Ding's picture

Hi Kent,

Converting the distance in 3d to distance in 2d doesn't have any standard method. I just evaluate this value by a point and a direction in parameter domain, then I use this point and this direction to construct a line segment in UV domain and accumulate its 3d length by increasing the module length of the direction.

-Ding