JunkBox_Lib++ (for Windows) 1.10.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BrepLib.h
Go to the documentation of this file.
1#ifndef __JBXL_BREPLIB_H_
2#define __JBXL_BREPLIB_H_
3
15#include "TriBrep.h"
16#include "MeshObjectData.h"
17
18
19#define BREPLIB_VERSION "v2.1.0 '20 11/29"
20#define BREPLIB_NAME "BREPLib"
21#define BREPLIB_COPYRIGHT "by Fumi.Iseki 2003"
22
23
24namespace jbxl {
25
26
28{
29public:
30 BrepSolidList(void) { init();}
31 virtual ~BrepSolidList(void);
32
33public:
35
36public:
37 void init (void);
38 void clear(void);
39 void free (void);
40
41public:
42 int addShell(MeshObjectData* mesh) { return addSolid(mesh);} // 有効なファセットの数を返す
43 int addSolid (MeshObjectData* mesh); // 有効なファセットの数を返す
44 void closeSolid(void) {}
45 void outputFile(const char* fn, const char* path=NULL, bool asciifile=true);
46
47 BREP_SOLID* getMerge(CVCounter* counter=NULL);
48};
49
50
51inline void freeBrepSolidList(BrepSolidList*& solids) { if(solids!=NULL){ solids->free(); delete solids; solids=NULL;} }
52
53
54
55} // namespace
56
57
58#endif
三角Contour(Facet)用ライブラリ ヘッダ for BREP
BREP_SOLID * getMerge(CVCounter *counter=NULL)
Definition BrepLib.cpp:146
int addSolid(MeshObjectData *mesh)
Definition BrepLib.cpp:54
void init(void)
Definition BrepLib.cpp:23
BREP_SOLID_LIST solid_list
Definition BrepLib.h:34
virtual ~BrepSolidList(void)
Definition BrepLib.cpp:17
void closeSolid(void)
Definition BrepLib.h:44
void outputFile(const char *fn, const char *path=NULL, bool asciifile=true)
Definition BrepLib.cpp:113
int addShell(MeshObjectData *mesh)
Definition BrepLib.h:42
void free(void)
Definition BrepLib.cpp:29
void clear(void)
Definition BrepLib.cpp:38
Definition Brep.h:29
void freeBrepSolidList(BrepSolidList *&solids)
Definition BrepLib.h:51
std::list< BREP_SOLID * > BREP_SOLID_LIST
Definition Brep.h:41