Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:sdksamples:movemeshvertext [2015/09/14]
127.0.0.1 external edit
developer:sdksamples:movemeshvertext [2016/01/26] (current)
sandy
Line 4: Line 4:
  
 =====Question===== =====Question=====
-How can I modify ​a particular point, or vertex, of CRhinoMeshObject object?+How can I change ​a particular point, or vertex, of CRhinoMeshObject object?
  
 =====Answer===== =====Answer=====
-A CRhinoMeshObject'​s geometric data member is an **ON_Mesh** object. For information on the ON_Mesh class, ​the the SDK's opennurbs_mesh.h header file.+A CRhinoMeshObject'​s geometric data member is an **ON_Mesh** object. For information on the ON_Mesh class, ​go to the SDK's opennurbs_mesh.h header file.
  
-Mesh vertices are stored on an **ON_Mesh** in an **m_V** data member, which is simply an array of points. So, if you want to modify ​the vertices of a mesh, you need to modify ​the data in this array.+Mesh vertices are stored on an **ON_Mesh** in an **m_V** data member, which is simply an array of points. So, if you want to change ​the vertices of a mesh, you need to change ​the data in this array.
  
-I should also add that in order to modify ​anything in Rhino, you might:+Also, to change ​anything in Rhino, you might:
  
   - Get the object.   - Get the object.
   - Make a copy of the object.   - Make a copy of the object.
-  - Modify ​this copied object.+  - Change ​this copied object.
   - Call one of the **CRhinoDoc::​ReplaceObject** overrides to update the object.   - Call one of the **CRhinoDoc::​ReplaceObject** overrides to update the object.
  
developer/sdksamples/movemeshvertext.txt ยท Last modified: 2016/01/26 by sandy