For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Coloring a surface

Anonymous's picture
Forums: 

Hi
I want to put a color to a TopoDS_Shape using

Standard_Boolean XCAFDoc_ColorTool::SetColor (const TopoDS_Shape& S, const Quantity_Color& Color, const XCAFDoc_ColorType type)

but it is giving following error:
--------------------Configuration: FRASP - Win32 Debug--------------------
Compiling...
setup_alert.cpp
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(506) : error C2653: 'XCAFDoc_ColorTool' : is not a class or namespace name
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(506) : error C2065: 'Colorsurf' : undeclared identifier
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(511) : error C2078: too many initializers
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(511) : error C2146: syntax error : missing ';' before identifier 'TopoDS_Shape'
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(511) : error C2146: syntax error : missing ';' before identifier 'Rotated_intermediate'
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(511) : error C2275: 'TopoDS_Shape' : illegal use of this type as an expression
c:\opencascade5.2\ros\inc\topods_shape.hxx(57) : see declaration of 'TopoDS_Shape'
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(511) : error C2065: 'Rotated_intermediate' : undeclared identifier
D:\naga\CODE\siddhartha\cfinal\Sid_code1.2\cFRASP\setup_alert.cpp(511) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class TopoDS_Shape' (or there is no acceptable conversion)
Error executing cl.exe.
Creating browse info file...

FRASP.exe - 8 error(s), 0 warning(s)

Can anybody please help me removing the errors.
TIA
Siddhartha