API Guide > Shapes > 

Example Shapes

 
 
 

quadricShape

The quadricShape plug-in demonstrates how to create a simple shape based around the OpenGL gluQuadric functions. This plug-in registers a new type of shape with Maya called "quadricShape" which can display spheres, cylinders, and disks. This shape supports hardware display of materials including 2D textures.

apiMeshShape

The apiMeshShape plug-in demonstrates how to create a polygonal mesh shape which has selectable, movable, animatable, and deformable vertices. This shape also supports hardware display of materials. This plug-in also creates geometry data and demonstrates how to pass this data between nodes.

The files associate with this plug-in are:

apiSimpleShape

The apiSimpleShape plug-in demonstrates how to use the MPxComponentShape class to create a shape that supports components. A simple grid of points is created for the shape.

The files associated with this plug-in are: