All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Crease Class Reference

#include <crease.h>

Public Types

enum  Rule {
  RULE_UNKNOWN = 0, RULE_SMOOTH = (1 << 0), RULE_DART = (1 << 1), RULE_CREASE = (1 << 2),
  RULE_CORNER = (1 << 3)
}
 

Public Member Functions

 Crease ()
 
 Crease (Options const &options)
 
 ~Crease ()
 
bool IsUniform () const
 
float SharpenBoundaryEdge (float edgeSharpness) const
 
float SharpenBoundaryVertex (float edgeSharpness) const
 
float SharpenNonManifoldEdge (float edgeSharpness) const
 
float SharpenNonManifoldVertex (float edgeSharpness) const
 
float SubdivideUniformSharpness (float vertexOrEdgeSharpness) const
 
float SubdivideVertexSharpness (float vertexSharpness) const
 
float SubdivideEdgeSharpnessAtVertex (float edgeSharpness, int incidentEdgeCountAtEndVertex, float const *edgeSharpnessAroundEndVertex) const
 
void SubdivideEdgeSharpnessesAroundVertex (int incidentEdgeCountAtVertex, float const *incidentEdgeSharpnessAroundVertex, float *childEdgesSharpnessAroundVertex) const
 
Rule DetermineVertexVertexRule (float vertexSharpness, int incidentEdgeCount, float const *incidentEdgeSharpness) const
 
Rule DetermineVertexVertexRule (float vertexSharpness, int sharpEdgeCount) const
 
float ComputeFractionalWeightAtVertex (float vertexSharpness, float childVertexSharpness, int incidentEdgeCount, float const *incidentEdgeSharpness, float const *childEdgesSharpness) const
 

Static Public Member Functions

static bool IsSmooth (float sharpness)
 
static bool IsSharp (float sharpness)
 
static bool IsInfinite (float sharpness)
 
static bool IsSemiSharp (float sharpness)
 

Static Public Attributes

static float const SHARPNESS_SMOOTH
 
static float const SHARPNESS_INFINITE
 

Protected Member Functions

float decrementSharpness (float sharpness) const
 

Detailed Description

Definition at line 62 of file crease.h.

Member Enumeration Documentation

enum Rule
Enumerator
RULE_UNKNOWN 
RULE_SMOOTH 
RULE_DART 
RULE_CREASE 
RULE_CORNER 

Definition at line 80 of file crease.h.

Constructor & Destructor Documentation

Crease ( )
inline

Definition at line 89 of file crease.h.

Crease ( Options const &  options)
inline

Definition at line 90 of file crease.h.

~Crease ( )
inline

Definition at line 91 of file crease.h.

Member Function Documentation

float ComputeFractionalWeightAtVertex ( float  vertexSharpness,
float  childVertexSharpness,
int  incidentEdgeCount,
float const *  incidentEdgeSharpness,
float const *  childEdgesSharpness 
) const
float decrementSharpness ( float  sharpness) const
inlineprotected

Definition at line 232 of file crease.h.

Rule DetermineVertexVertexRule ( float  vertexSharpness,
int  incidentEdgeCount,
float const *  incidentEdgeSharpness 
) const
Rule DetermineVertexVertexRule ( float  vertexSharpness,
int  sharpEdgeCount 
) const
static bool IsInfinite ( float  sharpness)
inlinestatic

Definition at line 72 of file crease.h.

static bool IsSemiSharp ( float  sharpness)
inlinestatic

Definition at line 73 of file crease.h.

static bool IsSharp ( float  sharpness)
inlinestatic

Definition at line 71 of file crease.h.

static bool IsSmooth ( float  sharpness)
inlinestatic

Definition at line 70 of file crease.h.

bool IsUniform ( ) const
inline

Definition at line 99 of file crease.h.

float SharpenBoundaryEdge ( float  edgeSharpness) const
inline

Definition at line 198 of file crease.h.

float SharpenBoundaryVertex ( float  edgeSharpness) const
inline

Definition at line 205 of file crease.h.

float SharpenNonManifoldEdge ( float  edgeSharpness) const
inline

Definition at line 212 of file crease.h.

float SharpenNonManifoldVertex ( float  edgeSharpness) const
inline

Definition at line 221 of file crease.h.

float SubdivideEdgeSharpnessAtVertex ( float  edgeSharpness,
int  incidentEdgeCountAtEndVertex,
float const *  edgeSharpnessAroundEndVertex 
) const
void SubdivideEdgeSharpnessesAroundVertex ( int  incidentEdgeCountAtVertex,
float const *  incidentEdgeSharpnessAroundVertex,
float *  childEdgesSharpnessAroundVertex 
) const
float SubdivideUniformSharpness ( float  vertexOrEdgeSharpness) const
inline

Definition at line 241 of file crease.h.

float SubdivideVertexSharpness ( float  vertexSharpness) const
inline

Definition at line 247 of file crease.h.

Member Data Documentation

float const SHARPNESS_INFINITE
static

Definition at line 68 of file crease.h.

float const SHARPNESS_SMOOTH
static

Definition at line 67 of file crease.h.


The documentation for this class was generated from the following file: