mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0027905: Visualization - randomly directed arrows on test v3d mesh B7
Behaviour of command meshvectors is stable now. It shows default vector (0,0,1) for volume entity. Test cases for issue CR27905
This commit is contained in:
@@ -965,9 +965,11 @@ static Standard_Integer meshvectors( Draw_Interpretor& di,
|
||||
for ( ; anIter.More(); anIter.Next() )
|
||||
{
|
||||
Standard_Boolean IsValidData = Standard_False;
|
||||
if (anIsElement)
|
||||
IsValidData = aMesh->GetDataSource()->GetNormal(anIter.Key(), 3, aCoords.ChangeValue(1), aCoords.ChangeValue(2), aCoords.ChangeValue(3));
|
||||
else
|
||||
if (anIsElement) {
|
||||
aMesh->GetDataSource()->GetGeomType(anIter.Key(), anIsElement, aEntType);
|
||||
if (aEntType == MeshVS_ET_Face)
|
||||
IsValidData = aMesh->GetDataSource()->GetNormal(anIter.Key(), 3, aCoords.ChangeValue(1), aCoords.ChangeValue(2), aCoords.ChangeValue(3));
|
||||
} else
|
||||
IsValidData = aMesh->GetDataSource()->GetGeom(anIter.Key(), Standard_False, aCoords, aNbNodes, aEntType);
|
||||
|
||||
gp_Vec aNorm;
|
||||
|
Reference in New Issue
Block a user