From 7417646122091ab998bef1f8570663288338c8f4 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 27 Jul 2016 17:10:49 +0200 Subject: [PATCH] #2865 BBTK Feature New Normal - new option in CleanExternalPlane DimImage+2 (Type 1) --- packages/vtk/src/bbvtkCleanExternalPlane.cxx | 8 ++++++++ packages/vtk/src/bbvtkCleanExternalPlane.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/vtk/src/bbvtkCleanExternalPlane.cxx b/packages/vtk/src/bbvtkCleanExternalPlane.cxx index b6d8a6e..aa814e2 100644 --- a/packages/vtk/src/bbvtkCleanExternalPlane.cxx +++ b/packages/vtk/src/bbvtkCleanExternalPlane.cxx @@ -140,12 +140,20 @@ void CleanExternalPlane::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') +// Nothing to do + if (bbGetInputType()==-1) + { + bbSetOutputOut( bbGetInputIn() ); + } + +// Clean external planes if (bbGetInputType()==0) { CleanTypeA( bbGetInputIn() ); bbSetOutputOut( bbGetInputIn() ); } +// Add new faces and clean the external planes if (bbGetInputType()==1) { CleanTypeB(); diff --git a/packages/vtk/src/bbvtkCleanExternalPlane.h b/packages/vtk/src/bbvtkCleanExternalPlane.h index d10d165..7dd5eb1 100644 --- a/packages/vtk/src/bbvtkCleanExternalPlane.h +++ b/packages/vtk/src/bbvtkCleanExternalPlane.h @@ -68,7 +68,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(CleanExternalPlane,bbtk::AtomicBlackBox); BBTK_DESCRIPTION("change the gray level of the externals planes of the image to 0 value."); BBTK_CATEGORY("filter"); BBTK_INPUT(CleanExternalPlane,In,"Input image",vtkImageData*,""); - BBTK_INPUT(CleanExternalPlane,Type,"0 = (default) not modifie Dimention. 1 = Add outside plane (Dimension of image change)",int,""); + BBTK_INPUT(CleanExternalPlane,Type,"-1= nothing to do, 0 = (default) not modifie Dimention. 1 = Add outside plane (Dimension of image change)",int,""); BBTK_OUTPUT(CleanExternalPlane,Out,"Output image",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(CleanExternalPlane); //===== -- 2.47.1