double b = bbGetInputColor()[2];
vtkactor->GetProperty()->SetColor( r,g,b );
}
-
if ( bbGetInputTransform()!=NULL )
{
vtkprop3D->SetUserTransform( bbGetInputTransform() );
}
- // bbSetOutputOut( vtkactor );
-
- // Interface Update
+ // bbSetOutputOut( vtkactor );
+ // Interface Update
if ((bbGetInputRenderer()!=NULL) && ( backActive!=bbGetInputActive() ))
{
-
if (bbGetInputActive()==true )
{
bbGetInputRenderer()->AddActor( vtkprop3D );
std::vector<double> lstZ = bbGetInputLstZ();
std::vector<int> lstIndexs = bbGetInputLstIndexs();
- printf("CreateMeshFromPoints::Process: sizeX %d \n", lstX.size() );
- printf("CreateMeshFromPoints::Process: sizeY %d \n", lstY.size() );
- printf("CreateMeshFromPoints::Process: sizeZ %d \n", lstZ.size() );
- printf("CreateMeshFromPoints::Process: lstIndexs %d \n", lstIndexs.size() );
-
if ( (lstIndexs.size()<=1) || (lstX.size()==0) || (lstX.size()!=lstY.size()) || (lstY.size()!=lstZ.size()) )
{
printf("Warnning! CreateMeshFromPoints::Process: List of points X Y Z and LstIndexes is not correct\n");
// See example in:
// https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/Cutter/
- printf("EED Cutter::Process start this=%p ImFu=%p \n ", this, bbGetInputImplicitFunction() );
+ printf("EED Cutter::Process start this=%p ImFu=%p In=%p\n", this, bbGetInputImplicitFunction() , bbGetInputIn() );
if ( (bbGetInputActive()==true) && (bbGetInputIn()!=NULL) )
{
vtkCutter *cutter;
} else {
bbSetOutputOut( NULL );
}
-
- printf("EED Cutter::Process end\n ");
}
+
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
// (the one provided in the attribute 'type' of the tag 'input')
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
-
+
+ printf("EED MeshManager_tool::Process start this=%p\n", this);
+
if (bbGetInputMeshManagerModel()!=NULL)
{
if (bbGetInputTool()==10) // Undo
} // Mesh!=NULL
} // if Tool 30 Set
+ if (bbGetInputTool()==35) // Set memory mode
+ {
+ printf("EED MeshManager_tool::Process Set memory mode\n");
+// if (bbGetInputMesh()!=NULL){
+// vtkPoints *points = bbGetInputMesh()->GetPoints();
+// if (points!=NULL)
+// {
+ bbGetInputMeshManagerModel()->SetMeshMemoryMode( bbGetInputMesh() );
+// } // if points!=NULL
+// } // Mesh!=NULL
+ } // if Tool 35 Set memory mode
+
+
if (bbGetInputTool()==40) // Reset
{
printf("EED Warning! MeshManager_tool Reset Not implemented.\n");
} // if Tool 40 Reset
+
+
+
} else {
printf("EED Warning! MeshManager_tool : MeshManagerModel not defined. \n");
}// if MeshManagerModel != NULL
} // if mesh
}
+void MeshManagerModel::SetMeshMemoryMode(vtkPolyData* mesh)
+{
+ _meshBase = mesh;
+ RefreshOutputs();
+}
+
vtkPolyData* MeshManagerModel::GetMeshBase()
{
return _meshBase;
~MeshManagerModel();
void SetMeshBase(vtkPolyData* mesh);
+ void SetMeshMemoryMode(vtkPolyData* mesh);
vtkPolyData* GetMeshBase();
vtkPolyData* GetMeshTemp();
virtual void RefreshOutputs();