0022150: [CEA 789] Projection_1D2D not taken into account by BLSURF

Fix a problem with visualisation of 'left_translated' mesh.

SMDS_Mesh::SMDS_Mesh()
{ ...
-  points->SetNumberOfPoints(SMDS_Mesh::chunkSize);
+  points->SetNumberOfPoints(0);
This commit is contained in:
eap 2013-03-19 08:36:53 +00:00
parent a83c7a3df1
commit e03f3c1659

View File

@ -160,10 +160,10 @@ SMDS_Mesh::SMDS_Mesh()
myGrid->Initialize(); myGrid->Initialize();
myGrid->Allocate(); myGrid->Allocate();
vtkPoints* points = vtkPoints::New(); vtkPoints* points = vtkPoints::New();
// rnv: to fix bug "21125: EDF 1233 SMESH: Degrardation of precision in a test case for quadratic conversion" // bug "21125: EDF 1233 SMESH: Degrardation of precision in a test case for quadratic conversion"
// using double type for storing coordinates of nodes instead float. // Use double type for storing coordinates of nodes instead of float.
points->SetDataType(VTK_DOUBLE); points->SetDataType(VTK_DOUBLE);
points->SetNumberOfPoints(SMDS_Mesh::chunkSize); points->SetNumberOfPoints(0 /*SMDS_Mesh::chunkSize*/);
myGrid->SetPoints( points ); myGrid->SetPoints( points );
points->Delete(); points->Delete();
myGrid->BuildLinks(); myGrid->BuildLinks();