occ set geomtype + bug fix ???

This commit is contained in:
Joachim Schoeberl 2010-04-28 19:24:38 +00:00
parent cc66083309
commit 44e9b5ed87
2 changed files with 11 additions and 1 deletions

View File

@ -23,7 +23,7 @@ libnglib_la_LDFLAGS = -avoid-version
# -rdynamic # -rdynamic
bin_PROGRAMS = ng_vol ng_stl bin_PROGRAMS = ng_vol ng_stl ng_occ
ng_vol_SOURCES = ng_vol.cpp ng_vol_SOURCES = ng_vol.cpp
ng_vol_LDADD = \ ng_vol_LDADD = \
libnglib.la libnglib.la
@ -32,3 +32,8 @@ ng_stl_LDADD = \
libnglib.la libnglib.la
ng_occ_SOURCES = ng_occ.cpp
ng_occ_LDADD = \
libnglib.la

View File

@ -712,6 +712,8 @@ namespace nglib
OCCGeometry * occgeom = (OCCGeometry*)geom; OCCGeometry * occgeom = (OCCGeometry*)geom;
Mesh * me = (Mesh*)mesh; Mesh * me = (Mesh*)mesh;
me->geomtype = Mesh::GEOM_OCC;
mparam.uselocalh = mp->uselocalh; mparam.uselocalh = mp->uselocalh;
mparam.maxh = mp->maxh; mparam.maxh = mp->maxh;
@ -726,8 +728,11 @@ namespace nglib
occparam.resthcloseedgeenable = mp->closeedgeenable; occparam.resthcloseedgeenable = mp->closeedgeenable;
occparam.resthcloseedgefac = mp->closeedgefact; occparam.resthcloseedgefac = mp->closeedgefact;
/*
delete me; delete me;
me = new Mesh; me = new Mesh;
*/
me -> DeleteMesh();
OCCSetLocalMeshSize(*occgeom, *me); OCCSetLocalMeshSize(*occgeom, *me);