shapeset.cpp File Reference

#include "h3dconfig.h"
#include "shapeset.h"
#include "refdomain.h"
#include <common/trace.h>
#include <common/error.h>
#include <common/callstack.h>

Functions

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.
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.
Part transform_edge_part (int ori, Part part)
 Transform the edge part.
Part transform_face_part (int ori, Part part)
 Transform the face part.

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'.
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
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 opposite_part ( int  part  ) 

Get the part that is opposite to another part.

Returns:
the opposite part to the 'part' param
Parameters:
[in] part 
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
Generated on Fri Sep 3 09:22:20 2010 for Hermes3D Library: Real Version by  doxygen 1.6.3