Create a polygonal representation of a box with a given level of subdivision.
More...
Inherits vtkPolyDataAlgorithm.
|
virtual int | IsA (const char *type) |
|
vtkTessellatedBoxSource * | NewInstance () const |
|
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
|
|
virtual void | SetBounds (double, double, double, double, double, double) |
|
virtual void | SetBounds (double[6]) |
|
|
virtual double * | GetBounds () |
|
virtual void | GetBounds (double &, double &, double &, double &, double &, double &) |
|
virtual void | GetBounds (double[6]) |
|
|
virtual void | SetLevel (int) |
|
|
virtual int | GetLevel () |
|
|
virtual void | SetDuplicateSharedPoints (int) |
|
virtual int | GetDuplicateSharedPoints () |
|
virtual void | DuplicateSharedPointsOn () |
|
virtual void | DuplicateSharedPointsOff () |
|
|
virtual void | SetQuads (int) |
|
virtual int | GetQuads () |
|
virtual void | QuadsOn () |
|
virtual void | QuadsOff () |
|
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
| vtkTessellatedBoxSource () |
|
| ~vtkTessellatedBoxSource () |
|
void | DuplicateSharedPointsMethod (double *bounds, vtkPoints *points, vtkCellArray *polys) |
|
void | MinimalPointsMethod (double *bounds, vtkPoints *points, vtkCellArray *polys) |
|
|
virtual int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
|
|
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outpuVector) |
|
|
vtkIdType | LocalFacePointCoordinatesToPointId (int f, int i, int j) |
|
|
void | BuildFace (vtkPoints *points, vtkCellArray *polys, vtkIdType firstPointId, double facePoints[3][3], int changed) |
|
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)
Definition at line 43 of file vtkTessellatedBoxSource.h.
virtual double* vtkTessellatedBoxSource::GetBounds |
( |
| ) |
|
|
virtual |
Bounds of the box in world coordinates. This a 6-uple of xmin,xmax,ymin, ymax,zmin and zmax. Initial value is (-0.5,0.5,-0.5,0.5,-0.5,0.5), bounds of a cube of length 1 centered at (0,0,0). Bounds are defined such that xmin<=xmax, ymin<=ymax and zmin<zmax.
- Postcondition
- xmin<=xmax && ymin<=ymax && zmin<zmax
virtual void vtkTessellatedBoxSource::GetBounds |
( |
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
, |
|
|
double & |
|
|
) |
| |
|
virtual |
Bounds of the box in world coordinates. This a 6-uple of xmin,xmax,ymin, ymax,zmin and zmax. Initial value is (-0.5,0.5,-0.5,0.5,-0.5,0.5), bounds of a cube of length 1 centered at (0,0,0). Bounds are defined such that xmin<=xmax, ymin<=ymax and zmin<zmax.
- Postcondition
- xmin<=xmax && ymin<=ymax && zmin<zmax
virtual void vtkTessellatedBoxSource::GetBounds |
( |
double |
[6] | ) |
|
|
virtual |
Bounds of the box in world coordinates. This a 6-uple of xmin,xmax,ymin, ymax,zmin and zmax. Initial value is (-0.5,0.5,-0.5,0.5,-0.5,0.5), bounds of a cube of length 1 centered at (0,0,0). Bounds are defined such that xmin<=xmax, ymin<=ymax and zmin<zmax.
- Postcondition
- xmin<=xmax && ymin<=ymax && zmin<zmax