::VTKViewer_GeometryFilter():
myShowInside(0),
myStoreMapping(0),
+ myAppendCoincident3D(0),
myIsWireframeMode(0),
myIsBuildArc(false),
myMaxArcAngle(2)
cellId,
myShowInside,
allVisible,
+ myAppendCoincident3D,
cellVis,
output,
outputCD,
cellId,
myShowInside,
allVisible,
+ myAppendCoincident3D,
cellVis,
output,
outputCD,
aCellType = VTK_TRIANGLE;
numFacePts = 3;
input->GetCellNeighbors(cellId, faceIds, cellIds);
- if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ||
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if ( process || myShowInside ||
(!allVisible && !cellVis[cellIds->GetId(0)]) )
{
for ( i=0; i < numFacePts; i++)
aCellType = VTK_QUAD;
numFacePts = 4;
input->GetCellNeighbors(cellId, faceIds, cellIds);
- if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ||
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if ( process || myShowInside ||
(!allVisible && !cellVis[cellIds->GetId(0)]) )
{
for ( i=0; i < numFacePts; i++)
aCellType = VTK_QUAD;
numFacePts = 4;
input->GetCellNeighbors(cellId, faceIds, cellIds);
- if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ||
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if ( process || myShowInside ||
(!allVisible && !cellVis[cellIds->GetId(0)]) )
{
for ( i=0; i < numFacePts; i++)
aCellType = VTK_QUAD;
numFacePts = 4;
}
+
input->GetCellNeighbors(cellId, faceIds, cellIds);
- if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ||
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if ( process || myShowInside ||
(!allVisible && !cellVis[cellIds->GetId(0)]) )
{
for ( i=0; i < numFacePts; i++)
numFacePts = 6;
}
input->GetCellNeighbors(cellId, faceIds, cellIds);
- if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ||
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if ( process || myShowInside ||
(!allVisible && !cellVis[cellIds->GetId(0)]) )
{
for ( i=0; i < numFacePts; i++)
numFacePts = 4;
}
input->GetCellNeighbors(cellId, faceIds, cellIds);
- if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ||
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if ( process || myShowInside ||
(!allVisible && !cellVis[cellIds->GetId(0)]) )
{
for ( i=0; i < numFacePts; i++)
aCellType = VTK_POLYGON;
break;
}
- // TODO understand and fix display of several polyhedrons
+ // TODO understand and fix display of several polyhedrons
input->GetCellNeighbors(cellId, faceIds, cellIds);
- if (cellIds->GetNumberOfIds() <= 0 || myShowInside
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if (process || myShowInside
|| (!allVisible && !cellVis[cellIds->GetId(0)]))
{
for (i = 0; i < numFacePts; i++)
for (int j=0; j < cell->GetNumberOfFaces(); j++){
vtkCell *face = cell->GetFace(j);
input->GetCellNeighbors(cellId, face->PointIds, cellIds);
- if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ) {
+ bool process = cellIds->GetNumberOfIds() <= 0 ? true : myAppendCoincident3D;
+ if ( process <= 0 || myShowInside ) {
face->Triangulate(0,lpts,coords);
for (i=0; i < lpts->GetNumberOfIds(); i+=3) {
aNewPts[0] = lpts->GetId(i);
{
return myMaxArcAngle;
}
+
+
+int VTKViewer_GeometryFilter::GetAppendCoincident3D() const {
+ return myAppendCoincident3D;
+}
+
+void VTKViewer_GeometryFilter::SetAppendCoincident3D(int theFlag) {
+ if(myAppendCoincident3D != theFlag){
+ myAppendCoincident3D = theFlag;
+ this->Modified();
+ }
+}
\ No newline at end of file
* \brief Sets \a myIsWireframeMode flag. \a myIsWireframeMode is changed, call this->Modified().
* \param theIsWireframeMode - used for changing value of \a myIsWireframeMode variable.
*/
+
+ int GetAppendCoincident3D() const;
+ /*! \fn void SetAppendCoincident3D()
+ * \brief Sets \a myAppendCoincident3D flag. If this flag is true, filter append to the
+ result data set coincident 3D elements.
+ */
+
+ void SetAppendCoincident3D(int theFlag);
+ /*! \fn int SetAppendCoincident3D()
+ * \brief Return value of \a myAppendCoincident3D
+ * \retval myAppendCoincident3D
+ */
+
void SetWireframeMode(int theIsWireframeMode);
/*! \fn int GetWireframeMode()
* \brief Return value of \a myIsWireframeMode
int myShowInside;
int myStoreMapping;
int myIsWireframeMode;
+ int myAppendCoincident3D;
vtkFloatingPointType myMaxArcAngle; // define max angle for mesh 2D quadratic element in the degrees
bool myIsBuildArc; // flag for representation 2D quadratic element as arked polygon