New NURBS tools

Post Reply
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

New NURBS tools

Post by clintonman »

Working on improving the workspace NURBS tools.
curveAddCP_improved.jpg
Original curve in the center, right is old add control point, left new add control point

The enhancement is that adding a control point doesn't change the shape of the curve anymore. The old way flattened the curve at the insertion point.

The add curve tools have all been restructured and I'm in the process of fixing the load and save scripts to work with the new curve nodes. It can currently load truespace cob file curves. The svg loader can load a simple path but needs more work to load other shapes.

No new color options yet.
Clinton Reese

http://clintons3d.com
User avatar
the_ant
Chief Petty Officer
Posts: 149
Joined: 02 Jun 2009, 09:26
Type the number ten into the box: 0
Location: Perugia - Italy

Re: New NURBS tools

Post by the_ant »

:worship: :worship: :worship:
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBS_Loft.jpg
Skinning of curves into patch is working. Right is smooth and left is linear interpolation. Source curves are in the center.
Next is lofting curves into a patch.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBS_Birail1.jpg
NURBS Birail1

This one takes the profile curve at the bottom and extrudes it between 2 rail curves on the sides.
"Birail1" name is from Maya and means 1 profile curve for the 2 rail curves

The next one is "Birail2", so instead of 1 profile it has 2 profiles, one at each end of the rails.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBS_Birail2.jpg
Birail2
Profile curves top and bottom and rail curves on the sides.
I wasn't sure I would be able to pull this one off. There was a lot of tricky things to consider.

Next is making these new tools easier to use. As they exist now the curves have to be created in a certain orientation and relationship to each other and the rail curves have to have the same level of detail and the profile curves have to match their level of detail.

next steps:
translate my curve and patch rebuild plugins from modelspace into workspace
translate my curve and patch reverse plugins from modelspace into workspace
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5208
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New NURBS tools

Post by trueBlue »

Wow! That is a LOT of progress in 2 days! :bananatyping:
Well done... :worship:
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

Thanks, it was a lot of work over the weekend.

NURBS_Directions.jpg
Direction indicators

U and V direction indicators for curves and patches. This is needed to be sure curves and patches are lined up properly for some functions.

Not visible is also reverse curve, reverse patch in u or v direction and swap u and v directions of patch.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

nurbsRebuildCurve.jpg
Original single span curve at the top with copies rebuilt to 2,3 and 4 spans

The purpose is to get even spacing in the curve control points or to increase or decrease detail.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBS_SplitCurve.jpg
NURBS_SplitCurve.jpg (29.55 KiB) Viewed 3307 times
NURBS_SplitPatch.jpg
Modeling tools to split a curve or patch. Not the same as the scissors tool that would cut at any point along the curve, but splits at established control points.

Not shown - updated the point to point snapping to work with curves. Some other snap tools also need adjustment to work with curves and patches
Fixed the curve from points tool to make a straight line when only 2 points are selected.


I think at this point it's time to stop adding tools and make the current versions usable.
Potential future tools are weld curve, weld patch, rebuilt patch, revolve/lathe curve into a patch, extract curve from patch iso-line.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

NURBSshipTest.jpg

Test building the spaceship from a 3DBuzz NURBS modeling tutorial.
It's all going well. The ship is built from 4 curves, that are rebuilt to a specific iso line counts before running birail2 tool to make the surface.
The split nurbs tools was used to break up the surface into 5 parts with 1 piece offset from it's original location.

Now the tutorial calls for attaching that piece back with 4 new patches. So I need to make an extract curve from patch tool to then use the curves to make the 4 new pieces to fill in the gaps.
Clinton Reese

http://clintons3d.com
Post Reply