// =======================================================================
void Graphic3d_ClipPlane::SetCappingColor (const Quantity_Color& theColor)
{
- myAspect->SetInteriorColor (theColor);
- myAspect->ChangeFrontMaterial().SetColor (theColor);
+ mySectionStyle->SetInteriorColor (theColor);
+ mySectionStyle->ChangeFrontMaterial().SetColor (theColor);
++myAspectMod;
}
void Graphic3d_ClipPlane::SetCappingSectionStyle (const Handle(Graphic3d_AspectFillCapping)& theStyle)
{
mySectionStyle = theStyle;
- if (myAspect->FrontMaterial().MaterialType() != Graphic3d_MATERIAL_ASPECT)
+ if (mySectionStyle->FrontMaterial().MaterialType() != Graphic3d_MATERIAL_ASPECT)
{
}
}
// =======================================================================
void Graphic3d_ClipPlane::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
{
- OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myAspect.get());
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySectionStyle.get());
- OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myId);
+ //OCCT_DUMP_FIELD_VALUE_STRING (theOStream, myId);
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPlane);
public: // @name user-defined graphical attributes
//! Return color for rendering capping surface.
- Quantity_Color CappingColor() const { return myAspect->FrontMaterial().MaterialType() == Graphic3d_MATERIAL_ASPECT ? myAspect->FrontMaterial().Color() : myAspect->InteriorColor(); }
+ Quantity_Color CappingColor() const { return mySectionStyle->FrontMaterial().MaterialType() == Graphic3d_MATERIAL_ASPECT ? mySectionStyle->FrontMaterial().Color() : mySectionStyle->InteriorColor(); }
//! Set color for rendering capping surface.
Standard_EXPORT void SetCappingColor (const Quantity_Color& theColor);
std::cout << "Syntax error: unknown material '" << aChangeArgs[1] << "'.\n";
return 1;
}
- aClipPlane->SetCappingMaterial (aMatName);
+ //aClipPlane->SetCappingMaterial (aMatName);
}
else if (aChangeArg == "-overrideaspect"
|| aChangeArg == "overrideaspect")