MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
MeshEntity.cpp File Reference

Implements the MeshEntity class. More...

#include <cmath>
#include "MeshEntity.h"
#include "MeshEntityMessages.h"
#include "ishaders.h"
#include "texturelib.h"

Macros

#define INFO_BUFFER_SIZE   1024
 Size of buffer for composing messages to send to the info callback.
#define UNITS_ERROR_BOUND   0.5
 Stop successive refinement of path length estimates when the change in values is equal to or less than this tolerance.
#define OtherSliceType(sliceType)   (1 - (sliceType))
 Macro to get ROW_SLICE_TYPE from COL_SLICE_TYPE and vice versa, used in code that can operate on either kind of slice.
#define SliceSize(sliceType)   (_numSlices[OtherSliceType(sliceType)])
 Macro to find the number of control points in a slice, which is equal to the number of slices of the other kind.
#define SanitizeFloat(floatnum)   ((floatnum) == -0.0f ? 0.0f : (floatnum))
 Macro to get rid of negative-zero values.

Detailed Description

Implements the MeshEntity class.


Macro Definition Documentation

#define OtherSliceType (   sliceType)    (1 - (sliceType))

Macro to get ROW_SLICE_TYPE from COL_SLICE_TYPE and vice versa, used in code that can operate on either kind of slice.

This does mean that the numerical values assigned to ROW_SLICE_TYPE and COL_SLICE_TYPE are meaningful.

Parameters:
sliceTypeKind of slice to find the other of, so to speak.
#define SanitizeFloat (   floatnum)    ((floatnum) == -0.0f ? 0.0f : (floatnum))

Macro to get rid of negative-zero values.

Parameters:
floatnumNumber to be sanitized.
#define SliceSize (   sliceType)    (_numSlices[OtherSliceType(sliceType)])

Macro to find the number of control points in a slice, which is equal to the number of slices of the other kind.

Parameters:
sliceTypeKind of slice to measure.