Hi,<br>
<br>
I have the floowing code:<br>
<br>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
#include &quot;vtkActor.h&quot;<br>
#include &quot;vtkCamera.h&quot;<br>
#include &quot;vtkClipPolyData.h&quot;<br>
#include &quot;vtkDebugLeaks.h&quot;<br>
#include &quot;vtkPlanes.h&quot;<br>
#include &quot;vtkPolyDataMapper.h&quot;<br>
#include &quot;vtkProperty.h&quot;<br>
#include &quot;vtkRegressionTestImage.h&quot;<br>
#include &quot;vtkRenderWindow.h&quot;<br>
#include &quot;vtkRenderWindowInteractor.h&quot;<br>
#include &quot;vtkRenderer.h&quot;<br>
#include &quot;vtkBoxWidget.h&quot;<br>
#include &quot;vtkSphereSource.h&quot;<br>
#include &quot;vtkConeSource.h&quot;<br>
#include &quot;vtkGlyph3D.h&quot;<br>
#include &quot;vtkAppendPolyData.h&quot;<br>
#include &quot;vtkLODActor.h&quot;<br>
#include &quot;vtkCommand.h&quot;<br>
<br>
class vtkMyCallback : public vtkCommand<br>
{<br>
public:<br>
&nbsp; vtkPlanes *planes;<br>
&nbsp; vtkActor *a;&nbsp;&nbsp;&nbsp; <br>
&nbsp; vtkClipPolyData *clipper;<br>
&nbsp; void SetPlane(vtkPlanes * planes)<br>
&nbsp; {<br>
&nbsp;&nbsp;&nbsp; this-&gt;planes=planes;<br>
&nbsp; }<br>
<br>
&nbsp; void SetClipper(vtkClipPolyData *clipper)<br>
&nbsp; {<br>
&nbsp;&nbsp;&nbsp; this-&gt;clipper=clipper;<br>
&nbsp; }<br>
<br>
&nbsp; void SetActor(vtkActor * a)<br>
&nbsp; {<br>
&nbsp;&nbsp;&nbsp; this-&gt;a=a;<br>
&nbsp; }<br>
&nbsp; static vtkMyCallback *New() <br>
&nbsp;&nbsp;&nbsp; { return new vtkMyCallback; }<br>
&nbsp; void Delete()<br>
&nbsp;&nbsp;&nbsp; { delete this; }<br>
&nbsp; virtual void Execute(vtkObject *caller, unsigned long, void*)<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkBoxWidget *widget = reinterpret_cast&lt;vtkBoxWidget*&gt;(caller);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //widget-&gt;GetTransform(t);<br>
&nbsp;&nbsp;&nbsp; &nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; widget-&gt;GetPlanes(planes);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;a-&gt;VisibilityOn();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;clipper-&gt;SetClipFunction(planes);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //widget-&gt;GetProp3D()-&gt;SetUserTransform(t);<br>
&nbsp;&nbsp;&nbsp; }<br>
};<br>
<br>
void main()<br>
{<br>
&nbsp;&nbsp;&nbsp; vtkSphereSource *sphere = vtkSphereSource::New();<br>
vtkConeSource *cone = vtkConeSource::New();<br>
vtkGlyph3D *glyph = vtkGlyph3D::New();<br>
&nbsp; glyph-&gt;SetInput((vtkDataSet *)sphere-&gt;GetOutput());<br>
&nbsp; glyph-&gt;SetSource(cone-&gt;GetOutput());<br>
&nbsp; glyph-&gt;SetVectorModeToUseNormal();<br>
&nbsp; glyph-&gt;SetScaleModeToScaleByVector();<br>
&nbsp; glyph-&gt;SetScaleFactor(0.25);<br>
<br>
// The sphere and spikes are appended into a single polydata. This just<br>
// makes things simpler to manage.<br>
vtkAppendPolyData *apd = vtkAppendPolyData::New();<br>
&nbsp; apd-&gt;AddInput(glyph-&gt;GetOutput());<br>
&nbsp; apd-&gt;AddInput(sphere-&gt;GetOutput());<br>
vtkPolyDataMapper *maceMapper = vtkPolyDataMapper::New();<br>
&nbsp; maceMapper-&gt;SetInput(apd-&gt;GetOutput());<br>
vtkLODActor *maceActor = vtkLODActor::New();<br>
&nbsp; maceActor-&gt;SetMapper(maceMapper);<br>
&nbsp; maceActor-&gt;VisibilityOn();<br>
<br>
// This portion of the code clips the mace with the vtkPlanes implicit<br>
// function.&nbsp; The clipped region is colored green.<br>
vtkPlanes *planes = vtkPlanes::New();<br>
vtkClipPolyData *clipper = vtkClipPolyData::New();<br>
&nbsp; clipper-&gt;SetInput(apd-&gt;GetOutput());<br>
&nbsp; clipper-&gt;SetClipFunction(planes);<br>
&nbsp; clipper-&gt;GenerateClipScalarsOn();<br>
&nbsp; clipper-&gt;GenerateClippedOutputOn();<br>
&nbsp; clipper-&gt;InsideOutOff();&nbsp; <br>
&nbsp; <br>
&nbsp; <br>
vtkPolyDataMapper *selectMapper = vtkPolyDataMapper::New();<br>
<br>
&nbsp;&nbsp; selectMapper-&gt;SetInput(clipper-&gt;GetClippedOutput());<br>
&nbsp;&nbsp; selectMapper-&gt;ScalarVisibilityOff();&nbsp;&nbsp;&nbsp; <br>
<br>
vtkProperty *backProp =vtkProperty::New();<br>
&nbsp;&nbsp;&nbsp;&nbsp; backProp-&gt;SetDiffuseColor(0,0,0.25);<br>
<br>
vtkLODActor *selectActor = vtkLODActor::New();<br>
&nbsp; selectActor-&gt;SetMapper(selectMapper);<br>
&nbsp; selectActor-&gt;GetProperty()-&gt;SetColor(1,0,1);<br>
&nbsp; selectActor-&gt;VisibilityOff();<br>
&nbsp; selectActor-&gt;SetScale(1.01, 1.01, 1.01);<br>
&nbsp; selectActor-&gt;SetBackfaceProperty(backProp);<br>
<br>
// Create the RenderWindow, Renderer and both Actors<br>
vtkRenderer *ren = vtkRenderer::New();<br>
vtkRenderWindow *renWin = vtkRenderWindow::New();<br>
&nbsp; renWin-&gt;AddRenderer(ren);<br>
<br>
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br>
&nbsp; iren-&gt;SetRenderWindow(renWin);<br>
<br>
// The SetInteractor method is how 3D widgets are associated with the<br>
// render window interactor.&nbsp; Internally, SetInteractor sets up a bunch<br>
// of callbacks using the Command/Observer mechanism (AddObserver()).<br>
vtkBoxWidget *boxWidget = vtkBoxWidget::New();<br>
&nbsp; boxWidget-&gt;SetInteractor(iren);<br>
&nbsp; boxWidget-&gt;SetPlaceFactor(1.25);<br>
<br>
&nbsp; ren-&gt;AddActor(maceActor);<br>
&nbsp; ren-&gt;AddActor(selectActor);<br>
<br>
// Add the actors to the renderer, set the background and size<br>
&nbsp; ren-&gt;SetBackground(0.1, 0.2, 0.4);<br>
&nbsp; renWin-&gt;SetSize(300, 300);<br>
<br>
// This callback funciton does the actual work: updates the vtkPlanes<br>
// implicit function.&nbsp; This in turn causes the pipeline to update.<br>
/*de&lt;f SelectPolygons(object, event):<br>
&nbsp;&nbsp;&nbsp; // object will be the boxWidget<br>
&nbsp;&nbsp;&nbsp; global selectActor, planes<br>
&nbsp;&nbsp;&nbsp; object.GetPlanes(planes)<br>
&nbsp;&nbsp;&nbsp; selectActor.VisibilityOn()*/<br>
<br>
// Place the interactor initially. The input to a 3D widget is used to<br>
// initially position and scale the widget. The &quot;EndInteractionEvent&quot; is<br>
// observed which invokes the SelectPolygons callback.<br>
&nbsp; boxWidget-&gt;SetInput((vtkDataSet *)glyph-&gt;GetOutput());<br>
&nbsp; boxWidget-&gt;PlaceWidget();<br>
&nbsp; vtkMyCallback *callback = vtkMyCallback::New(); <br>
&nbsp; callback-&gt;SetActor(selectActor);<br>
&nbsp; callback-&gt;SetPlane(planes);<br>
&nbsp; callback-&gt;SetClipper(clipper);&nbsp;&nbsp;&nbsp; <br>
&nbsp; boxWidget-&gt;AddObserver(vtkCommand::InteractionEvent, callback);<br>
<br>
&nbsp; iren-&gt;Initialize();<br>
&nbsp; renWin-&gt;Render();<br>
&nbsp; iren-&gt;Start();<br>
}<br>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
How I Can do to the&nbsp; clip region can`t to visualize?<br>
<br>
Thanks;<br clear="all"><br>-- <br>Diego Armando Parada Cuervo<br>Estudiante de Ingeniería de Sistemas y Computación<br>Universidad Pedagógica y Tecnológica de Colombia