shapeset.h File Reference
#include "common.h"
#include "function.h"
Go to the source code of this file.
Classes |
| struct | Part |
| struct | CEDKey |
| | constrained key More...
|
| struct | CEDComb |
| class | Shapeset |
| | Base class for all shapesets. More...
|
Enumerations |
| enum | EPartOri { PART_ORI_HORZ = 0,
PART_ORI_VERT = 1
} |
| enum | EShapeFnType {
SHFN_CONSTRAINED = -1,
SHFN_VERTEX = 0,
SHFN_EDGE = 1,
SHFN_FACE = 2,
SHFN_BUBBLE = 3
} |
| enum | ECedKeyType { CED_KEY_TYPE_EDGE = 0,
CED_KEY_TYPE_FACE = 1,
CED_KEY_TYPE_EDGE_FACE = 2
} |
Functions |
| void | get_interval_part (int part, double &lo, double &hi) |
| | Get the endpoints of the interval.
|
| void | get_edge_part (int part, double &x) |
| | Get the position on the edge.
|
| double | get_edge_coef (int part) |
| Part | transform_edge_part (int ori, Part part) |
| | Transform the edge part.
|
| Part | transform_face_part (int ori, Part part) |
| | Transform the face part.
|
| int | get_lower_part (int part) |
| int | get_higher_part (int part) |
| int | face_to_edge_part (int part) |
| int | combine_face_part (int part, int finer_part) |
| | TODO: move to common/shapeset?
|
| int | opposite_part (int part) |
| | Get the part that is opposite to another part.
|
| int | opposite_edge_part (int part) |
Enumeration Type Documentation
- Enumerator:
| CED_KEY_TYPE_EDGE |
|
| CED_KEY_TYPE_FACE |
|
| CED_KEY_TYPE_EDGE_FACE |
|
- Enumerator:
| PART_ORI_HORZ |
|
| PART_ORI_VERT |
|
- Enumerator:
| SHFN_CONSTRAINED |
|
| SHFN_VERTEX |
|
| SHFN_EDGE |
|
| SHFN_FACE |
|
| SHFN_BUBBLE |
|
Function Documentation
| int combine_face_part |
( |
int |
part, |
|
|
int |
finer_part | |
|
) |
| | |
TODO: move to common/shapeset?
Combine parts on the face
- Returns:
- The combined part
- Parameters:
-
| [in] | part | - the part on the face |
| [in] | finer_part | - part that is added to the 'part' It can be either: 0 - part stays the same), 1 - combine with the lower part of the 'part', 2 - combine with the higher part of the 'part'. |
| int face_to_edge_part |
( |
int |
part |
) |
[inline] |
| double get_edge_coef |
( |
int |
part |
) |
|
| void get_edge_part |
( |
int |
part, |
|
|
double & |
x | |
|
) |
| | |
Get the position on the edge.
- Parameters:
-
| part[in] | ID of the position on the edge (see PIC) |
| x[out] | position on the edge |
| int get_higher_part |
( |
int |
part |
) |
[inline] |
| void get_interval_part |
( |
int |
part, |
|
|
double & |
lo, |
|
|
double & |
hi | |
|
) |
| | |
Get the endpoints of the interval.
- Parameters:
-
| part[in] | part of the interval (the number of stripe, see PIC) |
| lo[out] | lower bound of the part the interval |
| hi[out] | higher bound of the part the interval |
| int get_lower_part |
( |
int |
part |
) |
[inline] |
| int opposite_edge_part |
( |
int |
part |
) |
[inline] |
| int opposite_part |
( |
int |
part |
) |
|
Get the part that is opposite to another part.
- Returns:
- the opposite part to the 'part' param
- Parameters:
-
| Part transform_edge_part |
( |
int |
ori, |
|
|
Part |
part | |
|
) |
| | |
Transform the edge part.
- Returns:
- The transformed part
- Parameters:
-
| [in] | ori | - the orientation of the edge |
| [in] | part | - the part that is being transformed |
| Part transform_face_part |
( |
int |
ori, |
|
|
Part |
part | |
|
) |
| | |
Transform the face part.
- Returns:
- The transformed part
- Parameters:
-
| [in] | ori | - the orientation of the face |
| [in] | part | - the part that is being transformed |