Brief Index      Full Index      Events Index      I.M. Reference

MSet_Face_Normals

Functions

void MSet_Face_Normals (HC_KEY key, int offset, int count, const HC_VECTOR *normals)
void MSet_Specific_Face_Normals (HC_KEY key, int count, const int *indices, const HC_VECTOR *normals)
void MUnSet_Face_Normals (HC_KEY key, int offset, int count)
void MUnSet_Specific_Face_Normals (HC_KEY key, int count, int const *indices)

Function Documentation

void MSet_Face_Normals ( HC_KEY  key,
int  offset,
int  count,
const HC_VECTOR *  normals 
)

Speedily sets the drawing attributes on a large number of shell or mesh faces.

Parameters:
keyThe unique identifier returned by a previous call to Insert_Mesh(), Insert_Shell(), or Insert_PolyCylinder().
offsetNumber of the face in the surface definition at which to start work. "0" is the first offset value.
countThe number of normals contained in normals.
normalsVector of x-y-z normal values. A simple N x 3 array may also be used. Passed by reference always.

DETAILS

The "normal" mode of setting an attribute value on a single shell or mesh face is to open the geometry, open the face, set the attribute, close the face, open the next face, set the next attribute, close the face, etc. This can be tedious if a large number of faces need to be set up. The "MSet" ("Multi-Set") routines are provided as a convenience to speed up that process.

RESTRICTIONS

This function cannot be used on polycylinders, even though polycylinders can have explicit face normals (but only on their endcaps).

See also:
Set_Color, Set_Color_By_Value, Set_Color_By_Index, Set_Rendering_Options, Set_Normal, Define_Texture, Open_Face
void MSet_Specific_Face_Normals ( HC_KEY  key,
int  count,
const int *  indices,
const HC_VECTOR *  normals 
)

Speedily sets the normal values for a specific faces on a shell or mesh faces.

Parameters:
keyThe unique identifier returned by a previous call to Insert_Mesh(), Insert_Shell(), or Insert_PolyCylinder().
countNumber of the faces in which to set the normals values.
indicesThe faces in which to set the normal values.
normalsVector of x-y-z normal values. A simple N x 3 array may also be used. Passed by reference always.

DETAILS

No additional details. See MSet_Face_Normals() for more information.

void MUnSet_Face_Normals ( HC_KEY  key,
int  offset,
int  count 
)

Removes the normal values for a range of faces at once. This allows the shell or mesh to inherit segment-level normal value settings.

Parameters:
keyThe unique identifier returned by a previous call to Insert_Mesh(), Insert_Shell(), or Insert_PolyCylinder().
offsetThe first face number.
countNumber of the faces in which to set the normals values.

DETAILS

No additional details. See MSet_Face_Normals() for more information.

void MUnSet_Specific_Face_Normals ( HC_KEY  key,
int  count,
int const *  indices 
)

Removes the normal values for a set of specific faces at once. This allows the shell or mesh to inherit segment-level normal value settings.

Parameters:
keyThe unique identifier returned by a previous call to Insert_Mesh(), Insert_Shell(), or Insert_PolyCylinder().
countNumber of the faces in which to set the normals values.
indicesThe faces in which to set the normal values.

DETAILS

No additional details. See MSet_Face_Normals() for more information.

Brief Index      Full Index      Events Index      I.M. Reference