mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0022982: Generic color is overriden in STEPCAFControl_Writer::WriteColors
This commit is contained in:
@@ -38,7 +38,13 @@ is
|
||||
|
||||
enumeration ColorType is
|
||||
---Purpose: Defines types of color assignments
|
||||
ColorGen, -- simple color
|
||||
-- Color of shape is defined following way
|
||||
-- in dependance with type of color.
|
||||
-- If type of color is XCAFDoc_ColorGen - then this color
|
||||
-- defines default color for surfaces and curves.
|
||||
-- If for shape color with types XCAFDoc_ColorSurf or XCAFDoc_ColorCurv is specified
|
||||
-- then such color overrides generic color.
|
||||
ColorGen, -- simple color
|
||||
ColorSurf, -- color of surfaces
|
||||
ColorCurv -- color of curves
|
||||
end ColorType;
|
||||
|
@@ -84,7 +84,12 @@ is
|
||||
type : ColorType from XCAFDoc);
|
||||
---Purpose: Sets a link with GUID defined by <type> (see
|
||||
-- XCAFDoc::ColorRefGUID()) from label <L> to color
|
||||
-- defined by <colorL>
|
||||
-- defined by <colorL>. Color of shape is defined following way
|
||||
-- in dependance with type of color.
|
||||
-- If type of color is XCAFDoc_ColorGen - then this color
|
||||
-- defines default color for surfaces and curves.
|
||||
-- If for shape color with types XCAFDoc_ColorSurf or XCAFDoc_ColorCurv is specified
|
||||
-- then such color overrides generic color.
|
||||
|
||||
SetColor (me; L: Label from TDF;
|
||||
Color: Color from Quantity;
|
||||
|
Reference in New Issue
Block a user