Surface comparision

Hi all,
I have two surfaces. One is my design surface and the other one is in stl format that is created by powermill, after milling the design surface. Of course they have a little deviation. How can I find the colored contour of the error on stl surface along the z axis by OCC?
Regards,
Akbari

Francois Lauzon's picture

There is no way that I know to directly do that in OCC, you have to developp it yourself (That's what we did)

Francois.

akbari1358_31365's picture

Hi Sir,
You are right, but could you please guide me how I can make a gradient color on surface?
Regards,
Akbari

ngoctn's picture

Hello Akbari!
You can read the User_Cylinder class in OpenCASCADE samples. OCC developers wrote a sample application to display a colored mesh (see Viewer 3D application).
Good luck.