opCreateCurvesOnFace() for parameters 0 and 1 fail?
Even the native Isoparametric Curve feature can't do a parameter of 0 or 1 on a periodic surface (for example: to get the circular end of a cylinder). Does anyone know a decent workaround?
Best Answer
-
Thanks fellas. Here's what I ended up coming up with. Since my case is somewhat narrow I don't have to worry about dealing with trimmed surfaces and I know that the only 2 edges a periodic surface will have are the ones I need.
function getEdgesOfPeriodicSurface(context is Context, face is Query) returns array
{var paramPoints = evFaceTangentPlanes(context, {"face" : face,"parameters" : [vector(0, 0), vector(1, 1)]});return [qContainsPoint(edges, paramPoints[0].origin), qContainsPoint(edges, paramPoints[1].origin)];}1
Answers
-
Could you use evFacePeriodicity and evApproximateBSplineSurface to get the underlying surface then get get the curve from that?
▚▞▚▞▚▞▚▞▚0 -
Thanks fellas. Here's what I ended up coming up with. Since my case is somewhat narrow I don't have to worry about dealing with trimmed surfaces and I know that the only 2 edges a periodic surface will have are the ones I need.
function getEdgesOfPeriodicSurface(context is Context, face is Query) returns array
{var paramPoints = evFaceTangentPlanes(context, {"face" : face,"parameters" : [vector(0, 0), vector(1, 1)]});return [qContainsPoint(edges, paramPoints[0].origin), qContainsPoint(edges, paramPoints[1].origin)];}1

