MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
Topology (sub) classes

クラス

class  MGBoundary
 MGBoundary is a boundary of more than 1 manifold dimension. [詳解]
 
class  MGBVertex
 MGBVertex is 0 manifold dimension binder cell, is an point. [詳解]
 
class  MGCell
 MGCell is a general cell that has bound. [詳解]
 
class  MGCellBase
 Is an abstract class and the super class of MGPVertex and MGCellNB. [詳解]
 
class  MGCellNB
 CellNB is a cell without boundaries(No Boundaries). [詳解]
 
class  MGComplex
 MGComplex is a container of parameter cells and binder cells. [詳解]
 
class  MGEdge
 MGEdge is an instance of MGCellNB, represents a boundary element of 2D manifold. [詳解]
 
class  MGFace
 MGFace is a trimmed surface. [詳解]
 
class  MGLoop
 MGLoop is a boundary of a face, a boundary of 2D manifold cell. [詳解]
 
class  MGPVertex
 MGPVertex is a parameter cell of the manifold dimension 0. [詳解]
 
class  MGShell
 MGShell is a composition of MGFace's(trimmed surface). [詳解]
 
class  MGTopology
 MGTopology is an abstract class which represents a whole Topology. [詳解]
 

型定義

typedef std::vector< const
MGLBRep * > 
SHLL_COM_EDGES
 

列挙型

enum  MGCellNB::CELL_KIND { MGCellNB::UNKNOWN =0, MGCellNB::PCELL =1, MGCellNB::BCELL =2 }
 
enum  MGLoop::LoopKind {
  MGLoop::UNDEFINED =-1, MGLoop::INACTIVE =0, MGLoop::PERIMITER_LOOP =1, MGLoop::OUTER_LOOP =2,
  MGLoop::INNER_LOOP =3, MGLoop::NETWORK =4
}
 

関数

MG_DLL_DECLR MGPosition MGClosest_to_curves (const MGPosition &uv, const MGPvector< MGCurve > &curves)
 
MG_DLL_DECLR void build_networks (const MGFSurface &surf, const MGPvector< MGCurve > &pcurves, MGPvector< MGLoop > &networks)
 Build networks of surf, given parameter curves vector. [詳解]
 
MG_DLL_DECLR std::auto_ptr
< MGLoop
trim_out_subloop (const MGLEPoint &ts, const MGLEPoint &te)
 
void MG_DLL_DECLR set_up_shell_shade (const MGShell &shell, MGDrawParam &para, MGPvector< MGLBRep > &boudaries, std::vector< std::vector< SHLL_COM_EDGES > > &polylines)
 

詳解

MGTopology is top abstract class for MGBVertex, MGPVertex, MGEdge, MGLoop, MGFace, MGShell.

型定義詳解

typedef std::vector<const MGLBRep*> SHLL_COM_EDGES

列挙型詳解

列挙値
UNKNOWN 
PCELL 
BCELL 
列挙値
UNDEFINED 
INACTIVE 
PERIMITER_LOOP 
OUTER_LOOP 

must be cloded.

INNER_LOOP 

must be cloded.

NETWORK 

関数詳解

MG_DLL_DECLR void build_networks ( const MGFSurface surf,
const MGPvector< MGCurve > &  pcurves,
MGPvector< MGLoop > &  networks 
)

Build networks of surf, given parameter curves vector.

引数
surfThe objective surface
pcurves(u,v) 2D parameter curves of surf.
networksBuilt networks
MG_DLL_DECLR MGPosition MGClosest_to_curves ( const MGPosition uv,
const MGPvector< MGCurve > &  curves 
)

Obtain the closest point from point uv to vector of curves. MGClosest_to_curves does not change wc_zero, and so calling program of MGClosest_to_curves should change it if necessary.

引数
uvPoint.
curvesvector of curves.
void MG_DLL_DECLR set_up_shell_shade ( const MGShell shell,
MGDrawParam para,
MGPvector< MGLBRep > &  boudaries,
std::vector< std::vector< SHLL_COM_EDGES > > &  polylines 
)

Set up common edges world coordinate line data in polylines. polylines[i] is std::vector<SHLL_COM_EDGES> for face(i) for i=0,...,number_of_faces()-1.

引数
shellTarget shell
parainput tessellation parameter. When para.maximum_edge_length_tess()<=0. is input, maximum_edge_length is computed and set in para.
boudariesContainer of the boundary data. Polylined boundaries will be held in boundaries.
polylinespolylines[i] holds boundary data of shell.face(i)'s loops polylined boundaries data.
MG_DLL_DECLR std::auto_ptr<MGLoop> trim_out_subloop ( const MGLEPoint ts,
const MGLEPoint te 
)

Get the clone of ts.loop()(==te.loop()), and trim th loop from ts to te. Function's return value is the trimmed loop.