VTK  9.5.2
vtkTessellatedBoxSource Class Reference

Create a polygonal representation of a box with a given level of subdivision. More...

#include <vtkTessellatedBoxSource.h>

Detailed Description

Create a polygonal representation of a box with a given level of subdivision.

vtkTessellatedBoxSource creates a axis-aligned box defined by its bounds and a level of subdivision. Connectivity is strong: points of the vertices and inside the edges are shared between faces. In other words, faces are connected. Each face looks like a grid of quads, each quad is composed of 2 triangles. Given a level of subdivision l', each edge has l'+2 points, l' of them are internal edge points, the 2 other ones are the vertices. Each face has a total of (l'+2)*(l'+2) points, 4 of them are vertices, 4*l' are internal edge points, it remains `l'^2 internal face points.

This source only generate geometry, no DataArrays like normals or texture coordinates.

Tests:
vtkTessellatedBoxSource (Tests) */

For export macro

class VTKFILTERSSOURCES_EXPORT vtkTessellatedBoxSource : public vtkPolyDataAlgorithm { public: static vtkTessellatedBoxSource* New(); typedef vtkPolyDataAlgorithm Superclass; private: virtual const char* GetClassNameInternal() const; public: static vtkTypeBool IsTypeOf(const char *type); virtual vtkTypeBool IsA(const char *type); static vtkTessellatedBoxSource * SafeDownCast(vtkObjectBase *o); protected: virtual vtkObjectBase *NewInstanceInternal() const; public: vtkTessellatedBoxSource *NewInstance() const; ; void PrintSelf(ostream& os, vtkIndent indent) override;

/ /** Set the bounds of the box. See GetBounds() for a detail description.

Precondition
xmin<=xmax && ymin<=ymax && zmin<zmax

The documentation for this class was generated from the following file: