Hi all,
I have written a remeshing scheme algorithm, similar to the "Smooth" (Polygons->Smooth) function in Maya. Everything works fine (connections are made, remeshing works properly) if the poly mesh I'm working on has history. For example, if I have a cube (pCube1), my node (polyRemesh) is inserted between the shape node (pCubeShape1) and the mesh parameter node (polyCube1).
If I were to delete history on pCube1, the polyCube1 node disappears. The way "Smooth" works is that it creates a new mesh type node and the polySmoothFace node when there is no history on pCube1. The mesh node (polySurfaceShape1) is hidden, but I guess it has all of the mesh data my collapsed history node had.
So the question - Is there a quick way in the API to create one of these mesh nodes with the pertinent mesh data, or will I have to write the node myself?
Kevin
P.S. Here's how to see what I'm talking about. Create a new poly cube (Create->Polygon Primitives->Cube). Delete its history (Edit->Delete By Type->History). Then smooth the cube (Polygons->Smooth). Two nodes are created: a polySmoothFace node and a polySurfaceShape (mesh) node. I want to know how to make the polySurfaceShape node.