[vtk-developers] new classes vtkOutlineCornerSource, vtkOutlineCornerFilter

Sebastien BARRE sebastien at barre.nom.fr
Thu Aug 3 15:56:37 EDT 2000


Hi

I've commited in two new classes (+ tcl example, regression test and valid 
image test) :

	vtk/contrib/vtkOutlineCornerSource.h
	vtk/contrib/vtkOutlineCornerSource.cxx
	vtk/contrib/vtkOutlineCornerFilter.h
	vtk/contrib/vtkOutlineCornerFilter.cxx
	vtk/contrib/examplesTcl/outlineCorner.tcl

	vtk/vtkbaseline/images/contrib/outlineCorner.tcl.tif

basically, it simply provides an alternate way to create an outline, LOD, 
or selection box, using a usual representation found in many 3D modellers. 
The outline is made of the 8 corner of the bounding box. Each corner is 
made of 3 lines starting from the corner toward the opposite corner on the 
X,Y, Z axis. The lenght of these lines is controlled by a CornerFactor() 
method (default 20% of the length of the bounding). Check out 
outlineCorner.tcl.tif in vtkbaseline to get the idea.

vtkOutlineCornerSource inherits vtkOutlineSource (thus uses the 
Set/GetBounds() methods/members).

vtkOutlineCornerFilter is written like vtkOutlineFilter : it inherits 
vtkDataSetToPolyDataFilter, and use vtkOutlineCornerSource to do the job. I 
had to reimplement/duplicate the CornerFactor() method, thus I do not know 
if it's the perfect implementation, but it's small anyway.

I do not know if it's worth being in VTK, feel free to stress-test it, and 
remove it if it's not that useful :)

BTW : does anyknow why adding a new class (thus, with no dependencies) will 
force a *full* rebuild of VTK on Windows system ? it takes forever :( 




More information about the vtk-developers mailing list