Sample Code for texture mapping

Can somebody show me a sample code to apply a texture on a shape ?

Olivier grognet's picture

As far as I know Opencascade, there is no support for such application. I think Opencascade can only define color and transparency.

You should try to use free API such as OpenGL or DirectX (if you work under Windows) You will have to do the interface between the API and OpenCascade, but it must be far easier than programming your own method!

Jean-Jacques's picture

If Open Cascade don't support this feature, what is the utility of classes such Graphic3d_TextureMap ?

Eric Ro's picture

use AIS_TexturedShape