mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
Backward compatibility for occ geometry loading (from mesh file)
This commit is contained in:
parent
eff5e946f7
commit
c2f42f2f16
@ -1767,7 +1767,18 @@ namespace netgen
|
|||||||
id_from = shape_map.FindIndex(id.from)-1;
|
id_from = shape_map.FindIndex(id.from)-1;
|
||||||
id_to = shape_map.FindIndex(id.to)-1;
|
id_to = shape_map.FindIndex(id.to)-1;
|
||||||
}
|
}
|
||||||
ar & id_from & id_to & id.trafo & id.name;
|
ar & id_from & id_to;
|
||||||
|
|
||||||
|
// trafo is now optional -> special treatment necessary for backward compatibility
|
||||||
|
if(ar.Output() || netgen_version >= "v6.2.2403-34-g571cbbe4")
|
||||||
|
ar & id.trafo;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
auto trafo = Transformation<3>();
|
||||||
|
ar & trafo;
|
||||||
|
id.trafo = trafo;
|
||||||
|
}
|
||||||
|
ar & id.name;
|
||||||
if(ar.Input())
|
if(ar.Input())
|
||||||
{
|
{
|
||||||
id.from = shape_list[id_from];
|
id.from = shape_list[id_from];
|
||||||
|
Loading…
Reference in New Issue
Block a user