mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
occ set geomtype + bug fix ???
This commit is contained in:
parent
cc66083309
commit
44e9b5ed87
@ -23,7 +23,7 @@ libnglib_la_LDFLAGS = -avoid-version
|
||||
# -rdynamic
|
||||
|
||||
|
||||
bin_PROGRAMS = ng_vol ng_stl
|
||||
bin_PROGRAMS = ng_vol ng_stl ng_occ
|
||||
ng_vol_SOURCES = ng_vol.cpp
|
||||
ng_vol_LDADD = \
|
||||
libnglib.la
|
||||
@ -32,3 +32,8 @@ ng_stl_LDADD = \
|
||||
libnglib.la
|
||||
|
||||
|
||||
ng_occ_SOURCES = ng_occ.cpp
|
||||
ng_occ_LDADD = \
|
||||
libnglib.la
|
||||
|
||||
|
||||
|
@ -712,6 +712,8 @@ namespace nglib
|
||||
OCCGeometry * occgeom = (OCCGeometry*)geom;
|
||||
Mesh * me = (Mesh*)mesh;
|
||||
|
||||
me->geomtype = Mesh::GEOM_OCC;
|
||||
|
||||
mparam.uselocalh = mp->uselocalh;
|
||||
|
||||
mparam.maxh = mp->maxh;
|
||||
@ -726,8 +728,11 @@ namespace nglib
|
||||
occparam.resthcloseedgeenable = mp->closeedgeenable;
|
||||
occparam.resthcloseedgefac = mp->closeedgefact;
|
||||
|
||||
/*
|
||||
delete me;
|
||||
me = new Mesh;
|
||||
*/
|
||||
me -> DeleteMesh();
|
||||
|
||||
OCCSetLocalMeshSize(*occgeom, *me);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user