
Sat, 11/25/2023 - 03:36
Forums:
I am using the following code to build a triangulation:
Handle(AIS_Triangulation) m_hTriObject = new AIS_Triangulation(poly);
m_hAisContext->Display(m_hTriObject, Standard_True);
m_hTriObject->Attributes()->ShadingAspect()->Aspect()->SetInteriorStyle(Aspect_IS_SOLID);
m_hAisContext->SetDisplayMode(m_hTriObject, AIS_WireFrame, true);
Then how can i Use Smooth Lighting to the AIS_Triangulation
Sincerely, yang
Sat, 11/25/2023 - 11:20
Is there any particular reason for using
AIS_Triangulation
instead ofAIS_Shape
? I would suggest usingAIS_Shape
, when possible.Otherwise, don't forget to compute vertex normals (using
BRepLib_ToolTriangulatedShape::ComputeNormals()
or something else) for yourPoly_Triangulation
before displaying it.