Surface Texture Mapping

My Task is to create a wireframe surface and then map an image on this Surface. (Surface Texture Mapping) I'm using the NT-Platform and MFC. Does OpenCASCADE 3.0 support this feature, and if so do you have an source code example ?

Regards, Heinrich Kiehm

Francois Lauzon's picture

Yes, OpenCASCADE support this feature. You should have a look at the package Graphic3d where most of the display attributes you could set are there (like texture mapping, environnemental mapping, color, coefficient of reflexion, transparency, material type,...). For the texture mapping, it is define in Graphic3d_AspectFillArea3d::SetTextureMap. If you're using AIS (Application Interactive Services) , you could define a texture map on a surface (AIS_Shape) in the drawer of this shape (AIS_Drawer), then setting the Prs3d_ShadingAspect, and then the Graphic3d_AspectFillArea3d. I don't have any examples for the texture map, but I use that a lot for modifying other surface properties.

Good Luck. francois.