I have a custom mesh class that is working pretty well. When I create the class, I set the meshes I want to display and the object then gets added to the document. However, I would also like to control how this mesh looks (i.e. set a display material for this object, prevent the wires from being rendered, etc).
I know how to do this in the OnDraw function using a display conduit, but I want to actually change the doc object’s attributes.
Btw, modifying the custom mesh’s attributes and then adding it to the doc didn’t seem to work.
Rhino objects draw themselves. Thus, if you want your custom mesh object to draw different than MeshObject, then you will need to override the OnDraw() virtual function and draw the mesh. Contained in the DrawEventArgs passed to this function a reference to display pipeline which contains routines to help you draw the mesh.
I am not sure what this means. What attribute(s) did you modify? What did you expect to happen after you modified? Is there code that we can see that repeats this?