Functions | |
void | Edit_Mesh (HC_KEY key, int row_offset, int column_offset, int row_count, int column_count, const HC_POINT *points) |
void | DEdit_Mesh (HC_KEY key, int row_offset, int column_offset, int row_count, int column_count, const HCD_POINT *points) |
void Edit_Mesh | ( | HC_KEY | key, |
int | row_offset, | ||
int | column_offset, | ||
int | row_count, | ||
int | column_count, | ||
const HC_POINT * | points | ||
) |
Modifies one, some, or all of the vertex values in a previously-inserted mesh.
key | - The numeric identifier returned by a previous call to Insert_Mesh() . |
row_offset | - Row offset from the origin of the original mesh at which to begin editing. |
column_offset | - Column offset from the origin of the original mesh at which to begin editing. |
row_count | - The number of rows of mesh data to be changed. The change area is between vertex ( row_offset, column_offset) and vertex ( row_offset + row_count- 1, column_offset + column_count - 1), inclusive. |
column_count | - The number of columns of mesh data to be changed. The change area is between vertex ( row_offset, column_offset) and vertex ( row_offset + row_count - 1, column_offset + column_count- 1), inclusive. |
points | - A [row_count x column_count] array of x-y-z triplets of the coordinates of the vertices of the mesh. You can also use a simple [row_count x column_count x 3] array of floats. A one-dimensional vector of floats (with the entries packed row by row) may be used in place of the full 2-D/3-D . Passed by reference always. |
Edit_Mesh() lets you modify a large mesh as it sits in the database. You don't have to delete it or flush the segment and reinsert the mesh from scratch.
Edit_Mesh() operates on a rectangular sub-region of the original mesh, and replaces all the point values in that region with new ones.
It is not possible to change the size of a mesh except by starting over.
void DEdit_Mesh | ( | HC_KEY | key, |
int | row_offset, | ||
int | column_offset, | ||
int | row_count, | ||
int | column_count, | ||
const HCD_POINT * | points | ||
) |
Similar to Edit_Mesh(), but accepts and returns double-precision values. This command can only be used when the application source includes the HOOPS double-precision header, hcd.h.
key | - The numeric identifier returned by a previous call to Insert_Mesh() . |
row_offset | - Row offset from the origin of the original mesh at which to begin editing. |
column_offset | - Column offset from the origin of the original mesh at which to begin editing. |
row_count | - The number of rows of mesh data to be changed. The change area is between vertex ( row_offset, column_offset) and vertex ( row_offset + row_count- 1, column_offset + column_count - 1), inclusive. |
column_count | - The number of columns of mesh data to be changed. The change area is between vertex ( row_offset, column_offset) and vertex ( row_offset + row_count - 1, column_offset + column_count- 1), inclusive. |
points | - A [row_count x column_count] array of x-y-z triplets of the coordinates of the vertices of the mesh. You can also use a simple [row_count x column_count x 3] array of floats. A one-dimensional vector of floats (with the entries packed row by row) may be used in place of the full 2-D/3-D . Passed by reference always. |
No additional details. See Edit_Mesh().