Maya: Trimmed Surfaces for NURBS

smallarrows.GIF

pencil4.jpg

Pencil Trim Tutorial

In the Modeling module
Choose Create NURBS Primitives->Cylinder->option.jpg
Select Axis  Z
Input Number of Sections  18
Input Height 12
Select Caps none
Click on Create

Pick the select by component type button scomponent.jpg and point components point_component in the status line near the top.

Hold down the Shift key and draw a box to pick every third group of CVs around the circular part of the cylinder, from the front view.

Select the Rotate Tool buttonmrotate.jpg from the side tool box.  Interactively rotate the active CVs counter clockwise until they are close to the neighboring CV.

Click the background of any view to select nothing.

Hold down the Shift key and draw a box to pick every third group of CVs. (see arrows on diagram)

pencilpickcvs.jpg        pencilprofile.jpg

Select the Rotate Tool  mrotate.jpg  and interactively rotate the active CVs clockwise until they are close to the neighboring CV.



Pencil Tip
Select Create->NURBS Primitives->Cone->option.jpg
Select Axis  Z
Input Radius 1.2
Input Height 4.8
Input Number of Sections  6
Click on Create

Pick the select by object type button. sobject.jpg

Select the Move Tool button.  mmove.jpg

Move the cone down the Z axis so it intersects the pencil body closer to the tip.

pencil3.jpg

pencil5.jpg



Use detach to cut a pencil tip, this will save a lot of memory compared to using trim.
In object type  mode, select the cone.

Move the mouse over the cone, hold down the right mouse button to bring up the object menu, select isoparm. Click and drag on one of the vertical isoparms to select it and move it to where you want the tip.

Select Surfaces->Detach


Intersect the Pencil Body and the Cone

Pick both the pencil body and the cone.

Use Surfaces->Intersect
"curves on surface" are created on both surfaces.


Click the pencil body
Use Surfaces->Trim Tool

Click the region you wish to keep, pick towards the back, a yellow marker will appear.
Hit Enter
Trim will hide the front.

Repeat this for the cone.

Don't forget to delete the history, Edit->Delete by Type->History. History really slows down the interface with trimmed objects. You can untrim an object without history.

Create some curves and use Surfaces->Revolve to create the eraser.


Another Method to Trim: Project:
Perhaps the best analogy for the projection trim would be the cookie cutter and cookie dough. The cutter is projected into the dough (object) in order to produce the desired form.

Place a sphere in the scene. Scale it up a bit.

Draw a closed curve in the front window that will be our cookie cutter shape. This curve should overlap the sphere.

Pick the sphere and the curve from the front window, this will designate the front view as the axis to project along.

Use Surfaces->Project Curve on Surface
A couple of curves on surface were created on the sphere.

Click the sphere
Use Surfaces->Trim Tool
Click the region you wish to keep. Trim will hide the rest.
Hit Enter

Things to try:
  Try this with more than one projecting curve. Compare open curves versus closed. Project down different axes by picking different views before projecting. Try moving the projecting curve after trimming. The trim hole will update or change as you move the curve around.

*** Warning: Trim's history uses a lot of calculation, use Edit->Delete by Type->History to clear this up. Otherwise, Maya will grind to a halt eventually.