Nurbs Curve support added to OCurves schema in dev clone.

44 views
Skip to first unread message

Lucas Miller

unread,
Oct 21, 2013, 4:32:57 PM10/21/13
to alemb...@googlegroups.com
None of the tools currently support it, but I've had it in place for about a month and it feels pretty stable.

Alex, what do you think of it?

Alex Suter

unread,
Oct 21, 2013, 5:12:45 PM10/21/13
to alemb...@googlegroups.com

Code looks good.

 

From the tests it looks like the original style will still be supported. If a client was reading the new style with old code would it make any sense?

--
You received this message because you are subscribed to the Google Groups "alembic-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alembic-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Lucas Miller

unread,
Oct 21, 2013, 5:25:08 PM10/21/13
to alemb...@googlegroups.com
Most of the readers that I am aware of should draw something that is a very rough approximation.

We also still need to pick whether the number of knots specified should be N+2M-1 or N+2M+1


Lucas

Alex Suter

unread,
Oct 21, 2013, 7:23:26 PM10/21/13
to alemb...@googlegroups.com

We use N+2M+1 internally, but it’s probably more useful for the world if we match Maya. Not sure what they use. Anyone know?

Lucas Miller

unread,
Oct 21, 2013, 7:35:59 PM10/21/13
to alemb...@googlegroups.com
I believe Houdini likes N + 2M + 1 as well, but I know of another studio that prefers a N+2M-1.

This one might require a good old fashioned coin flip.

Lucas

Lucas Miller

unread,
Oct 22, 2013, 1:33:20 PM10/22/13
to alemb...@googlegroups.com
More info from one of our curves guys:

Maya allows  N + 2M - 1 knots in the interface, but internally must still use N + 2M + 1, because that is how many a real NURBS curve/surface uses.  Maya just adds an extra knot at the beginning and end with value 0 and 1, respectively, for a normalized curve (or duplicates of the first/last knot), and the user can't change that.  In simplified terms, all Maya default NURBS curves interpolate the first and last control point, but if you want a general NURBS curve where this is not the case, you might want the first/last degree +1 knots to be different.  Therefore a general user should have total control over specifying all knots (N + 2M + 1), not just N + 2M - 1.

I think we should use the N + 2M + 1 form.

Lucas

Alex Suter

unread,
Oct 22, 2013, 1:45:26 PM10/22/13
to alemb...@googlegroups.com

Definitely gets my vote.

Reply all
Reply to author
Forward
0 new messages