aShapeNode->SetAppearance(makeMaterialFromColor(aColorL, aColorTool));
}
- myScene.AddNode(aShapeNode, Standard_False);
+ myScene.AddNode(aShapeNode, theParent.IsNull() && aGroup.IsNull());
aShapeNode->SetGeometry(aTShapeNode);
if (aLoc.IsIdentity())
{
{
aGroup->AddNode(aShapeNode);
}
- else
+ else if (!theParent.IsNull())
{
theParent->AddNode(aShapeNode);
}
aTrsf.SetTranslationPart(aTransl);
}
aTrans->SetTransform(aTrsf);
- myScene.AddNode(aTrans, Standard_False);
+ myScene.AddNode(aTrans, theParent.IsNull() && aGroup.IsNull());
if (!aGroup.IsNull())
{
aGroup->AddNode(aTrans);
}
- else
+ else if (!theParent.IsNull())
{
theParent->AddNode(aTrans);
}
--- /dev/null
+puts "================"
+puts "0030409: Data Exchange - e x c e p t i o n during VRML file export"
+puts "================"
+puts ""
+
+pload XDE MODELING VISUALIZATION
+box b 1 2 3
+incmesh b 1
+explode b F
+XNewDoc D
+XAddShape D b_1 0
+WriteVrml D $imagedir/${casename}.wrl
+loadvrml w $imagedir/${casename}.wrl
+checktrinfo w -tri 2 -nod 4