Hi,
TPrsStd_AISPresentation has no such member function that allow me to set a AIS_Shape object into, so if I have a AIS_Trihedron object, how can I set it into the TPrsStd_AISPresentation object, If you has some idea, can you put some codes here,
thankx.
Jack
It's impossible to put AIS_Shape to TPrsStd_AISPresentation attribute. To display for example a TopoDS_Shape that is in TDF_Data stored using a TNaming_NamedShape attribute place AISPresentation attribute to the same label where NamedShape was set:
The AISPresentation attribute will create AIS_Shape and display it in the viewer. Note the viewer must have been set to a OCAF document before calling Display method.
Wed, 03/26/2003 - 23:13
You should use the TPrsStd_AISPresentation attribute.
Thu, 03/27/2003 - 11:00
Hi,
TPrsStd_AISPresentation has no such member function that allow me to set a AIS_Shape object into, so if I have a AIS_Trihedron object, how can I set it into the TPrsStd_AISPresentation object, If you has some idea, can you put some codes here,
thankx.
Jack
Thu, 03/27/2003 - 14:46
Hi Jack,
It's impossible to put AIS_Shape to TPrsStd_AISPresentation attribute. To display for example a TopoDS_Shape that is in TDF_Data stored using a TNaming_NamedShape attribute place AISPresentation attribute to the same label where NamedShape was set:
TDF_Label L; //The label with NamedShape
Handle(TPrsStd_AISPresentation) Prs = TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID());
Prs->Display(Standard_True);
The AISPresentation attribute will create AIS_Shape and display it in the viewer. Note the viewer must have been set to a OCAF document before calling Display method.
Regards