TColStd_SequenceOfAsciiString aNamesOfDisplayIO;
AIS_DisplayStatus aDispStatus = AIS_DS_None;
Standard_Integer toDisplayInView = Standard_False;
+ Standard_Boolean isWerthSpecific = Standard_False;
for (Standard_Integer anArgIter = 1; anArgIter < theArgNb; ++anArgIter)
{
const TCollection_AsciiString aName = theArgVec[anArgIter];
{
toReDisplay = Standard_True;
}
+ else if (aNameCase == "-werth")
+ {
+ isWerthSpecific = Standard_True;
+ }
else if (aNameCase == "-erased"
|| aNameCase == "-load")
{
aSelMode = aShape->GlobalSelectionMode();
}
+ if ( isWerthSpecific )
+ {
+ Graphic3d_MaterialAspect aFrontMat, aBackMat;
+ Handle(Prs3d_ShadingAspect) aShAspect = new Prs3d_ShadingAspect();
+ aFrontMat = aBackMat = aShAspect->Material();
+ aFrontMat.SetColor (Quantity_NOC_BLUE1);
+ aBackMat.SetColor (Quantity_NOC_RED);
+ aShAspect->SetMaterial (aFrontMat, Aspect_TOFM_FRONT_SIDE);
+ aShAspect->SetMaterial (aBackMat, Aspect_TOFM_BACK_SIDE);
+ aShAspect->Aspect()->SetSuppressBackFaces (Standard_False);
+ aShape->Attributes()->SetShadingAspect (aShAspect);
+ }
+
aCtx->Display (aShape, aDispMode, aSelMode,
Standard_False, aShape->AcceptShapeDecomposition(),
aDispStatus);
"\n\t\t: (DY looks up)"
"\n\t\t: -dispmode Sets display mode for objects."
"\n\t\t: -highmode Sets hilight mode for objects."
- "\n\t\t: -redisplay Recomputes presentation of objects.",
+ "\n\t\t: -redisplay Recomputes presentation of objects."
+ "\n\t\t: -werth Specific visualization mode for Werth.",
__FILE__, VDisplay2, group);
theCommands.Add ("vnbdisplayed",