issue on building CadRay

Hallo everyone,

Im involved to build from sources  CadRay.

I've found some issue using OCCT rev 7.4.0  regarding some changes on material library.

Revision 7.3 does not work for missing library:

CMake Error at CMake/macros.cmake:105 (message):
OCCT TKRWMesh library not found

Please can someone help me to know the correct commit to use for building?

Thank you in advance 

Alessandro

 

Kirill Gavrilov's picture

> I've found some issue using OCCT rev 7.4.0  regarding some changes on material library.
> Revision 7.3 does not work for missing library:

The description is confusing - you are trying to build CADRays with OCCT 7.4.0 (which should work) or OCCT 7.3.0 (which should not)?

alessandroscrem_148634's picture

I'm sorry for the misunderstanding,

I tried to build with occ rev 7,3 and 7,4.

Unfortunately i got some  error in both cases.

But finally i'm managed to to build cadray using occt rev 7.4.0.

I had to comment  following lines in AisMesh.cxx

lines 237 to 240

I understood that these methods were  deleted in rev 7.4.

aBsdfMaterial[aMatIdx].SetAmbient  (1.0);
aBsdfMaterial[aMatIdx].SetDiffuse  (1.0);
aBsdfMaterial[aMatIdx].SetSpecular (1.0);
aBsdfMaterial[aMatIdx].SetEmissive (0.0);

thank you for the support

Alessandro

Kirill Gavrilov's picture

You are right!

> CAD Rays: 27 Jun 2019.
> OCCT 7.4.0: 1 October 2019.

I haven't realized that CAD Rays has been published before OCCT 7.4.0 release.
So, indeed, it relies on OCCT version inbetween, though fixing building issues with OCCT 7.4.0  is straightforward.

xu weibin's picture

occ7.4 and 7.5,the method Graphic3d_MaterialAspect::SetAmbient is deleted, how can i to replace it?

Kirill Gavrilov's picture
xu weibin's picture

I have the same problem,do you solve?