how to display mesh in occ

Hi
I had generate the shape mesh by BRepMesh_Discret,but how to display mesh in occ?
thanks
hwb

Patrik Mueller's picture

Hi,

it depends on your need:

- just use AIS_Shape for the original shape (the one you have triangulated)
- derive a class from AIS_InteractiveObject for just displaying meshes

HTH,

Patrik

houwenbin's picture

Hi
thanks a lot,but can you tell me detail ?
hwb

Patrik Mueller's picture

Which method? As said there are 2 possibilities. Or just give us some more details...

Patrik

houwenbin's picture

Sorry,How derive a class from AIS_InteractiveObject for just displaying meshes?