#include <Brep.h>
Public Member Functions | |
BREP_EDGE (BREP_VERTEX *vertex1, BREP_VERTEX *vertex2) | |
virtual | ~BREP_EDGE () |
void | CloseData () |
Public Attributes | |
BREP_WING * | wing1 |
BREP_WING * | wing2 |
Vector< double > | center |
BREP_EDGE_LIST * | edge_list |
多重エッジのリストへのポインタ | |
bool | complete |
完全なエッジ.2つの Wingは共に使用されている. | |
double | tolerance |
Definition at line 232 of file Brep.h.
BREP_EDGE | ( | BREP_VERTEX * | vertex1, | |
BREP_VERTEX * | vertex2 | |||
) |
Definition at line 552 of file Brep.cpp.
References jbxl::BREP_WING, BREP_EDGE::center, BREP_EDGE::complete, BREP_WING::edge, BREP_EDGE::edge_list, jbxl::Edge_Tolerance, BREP_VERTEX::point, BREP_EDGE::tolerance, BREP_EDGE::wing1, and BREP_EDGE::wing2.
~BREP_EDGE | ( | ) | [virtual] |
Definition at line 566 of file Brep.cpp.
References BREP_WING::contour, DEBUG_MODE, BREP_EDGE::edge_list, PRINT_MESG, BREP_EDGE::wing1, and BREP_EDGE::wing2.
00567 { 00568 // BREP_EDGE: この Edge はまだ Contourで使われている!! 00569 if (wing1->contour || wing2->contour) { 00570 DEBUG_MODE PRINT_MESG("~BREP_EDGE: This Edge is still used!!\n"); 00571 } 00572 00573 delete wing1; 00574 delete wing2; 00575 00576 if (edge_list!=NULL) { 00577 BREP_EDGE_LIST::iterator iedge = std::find(edge_list->begin(), edge_list->end(), this); 00578 if (iedge!=edge_list->end()) { 00579 edge_list->erase(iedge); 00580 } 00581 if (edge_list->size()==1) { 00582 (*(edge_list->begin()))->edge_list = NULL; 00583 delete(edge_list); 00584 } 00585 } 00586 }
void CloseData | ( | void | ) |
Definition at line 590 of file Brep.cpp.
References Max, BREP_EDGE::tolerance, BREP_WING::vertex, BREP_EDGE::wing1, and BREP_EDGE::wing2.
Referenced by jbxl::CreateEdge().
00591 { 00592 // M.Segal, SIGGRAPH '90 p105 00593 double e = (wing1->vertex)->tolerance; 00594 e = Max(e, (wing2->vertex)->tolerance); 00595 tolerance = Max(e, tolerance); 00596 }
Definition at line 238 of file Brep.h.
Referenced by BREP_EDGE::BREP_EDGE().
bool complete |
Definition at line 241 of file Brep.h.
Referenced by BREP_EDGE::BREP_EDGE(), BREP_CONTOUR::CreateWing(), jbxl::CreateWingsList(), jbxl::DestroyWing(), jbxl::IsIncludeCompleteEdge(), and jbxl::JoinShortageWings().
Definition at line 239 of file Brep.h.
Referenced by BREP_EDGE::BREP_EDGE(), jbxl::CreateWingWithoutContour(), jbxl::DupEdgeNumber(), jbxl::IsIncludeCompleteEdge(), jbxl::JoinShortageWings(), jbxl::SetDeletableContoursByEdge(), and BREP_EDGE::~BREP_EDGE().
double tolerance |
Definition at line 242 of file Brep.h.
Referenced by BREP_EDGE::BREP_EDGE(), and BREP_EDGE::CloseData().
Definition at line 235 of file Brep.h.
Referenced by BREP_EDGE::BREP_EDGE(), BREP_EDGE::CloseData(), jbxl::CreateWingWithoutContour(), jbxl::DestroyWing(), jbxl::GetWingOtherSide(), jbxl::JoinShortageWings(), jbxl::SetDeletableContoursByEdge(), and BREP_EDGE::~BREP_EDGE().
Definition at line 236 of file Brep.h.
Referenced by BREP_EDGE::BREP_EDGE(), BREP_EDGE::CloseData(), jbxl::CreateWingWithoutContour(), jbxl::DestroyWing(), jbxl::GetWingOtherSide(), jbxl::JoinShortageWings(), jbxl::SetDeletableContoursByEdge(), and BREP_EDGE::~BREP_EDGE().