Public Member Functions | Public Attributes

FaceChange Class Reference

Search for all occurrences

Detailed Description

See also:
Class Mesh, Class Face, Class Point3.

Description:
This class is available in release 3.0 and later only.

This class represents the notion of a mesh edit Face Change, which changes the visibiliy of the face's edges, its hidden state and/or its material ID.
Data Members:
DWORD f

The face to change. This is a zero based index into the Mesh's faces array.

DWORD flags

Specifies which attributes to change. One or more of the following values:

ATTRIB_EDGE_A - Alter edge between v0 and v1

ATTRIB_EDGE_B - Alter edge between v1 and v2

ATTRIB_EDGE_C - Alter edge between v2 and v0

ATTRIB_EDGE_ALL - Alter all the edges.

ATTRIB_HIDE_FACE - Alter the face hidden state.

ATTRIB_MATID - Alter the material ID.

DWORD val;

The value containing the face change information. Bits 0, 1, 2 hold the edge visibility, bit 3 holds the hidden state, and bits 5-21 hold the material ID.

#include <meshdelta.h>

Inheritance diagram for FaceChange:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  FaceChange ()
  FaceChange (DWORD ff, DWORD fl, DWORD v)
DllExport void  Apply (Face &ff)
DllExport void  Apply (FaceChange &fa)

Public Attributes

DWORD  f
DWORD  flags
DWORD  val

Constructor & Destructor Documentation

FaceChange ( ) [inline]
Remarks:
Constructor. The flags and f are set to 0.
{ f=flags=0; }
FaceChange ( DWORD  ff,
DWORD  fl,
DWORD  v 
) [inline]
Remarks:
Constructor. The data members are initialized to the values passed.
Parameters:
DWORD ff

The index of the face to change. This is a zero based index into the Mesh's faces array.

DWORD fl

The flags to set.

DWORD v

The value to set.
{ f=ff; flags=fl; val=v; }

Member Function Documentation

DllExport void Apply ( Face ff )
Remarks:
Applies the face change to the Face passed using the flags of this FaceChange object to contol what's altered.
Parameters:
Face &ff

The face to change.
DllExport void Apply ( FaceChange fa )
Remarks:
Updates the flags and val to the FaceChange passed using this FaceChange and its flags.
Parameters:
FaceChange &fa

The FaceChange object to alter.

Member Data Documentation

DWORD f
DWORD flags
DWORD val

FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange
FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange FaceChange