Brief Index      Full Index      Events Index      I.M. Reference

Edit_Mesh


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)

Function Documentation

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.

Parameters:
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.

DETAILS

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.

NOTES

RESTRICTIONS

See also:
Insert_Mesh, Edit_Shell_Points, Flush_Contents, Delete_By_Key.

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.

Parameters:
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.

DETAILS

No additional details. See Edit_Mesh().

Brief Index      Full Index      Events Index      I.M. Reference