Section: Visualization Toolkit Graphics Classes
To create an instance of class vtkEdgeSubdivisionCriterion, simply invoke its constructor as follows
obj = vtkEdgeSubdivisionCriterion
obj
is an instance of the vtkEdgeSubdivisionCriterion class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkEdgeSubdivisionCriterion = obj.NewInstance ()
vtkEdgeSubdivisionCriterion = obj.SafeDownCast (vtkObject o)
bool = obj.EvaluateEdge (double p0, double p1, double p2, int field_start)
- You must implement this member function in a subclass.
It will be called by \p vtkStreamingTessellator for each
edge in each primitive that vtkStreamingTessellator generates.
int = obj.PassField (int sourceId, int sourceSize, vtkStreamingTessellator t)
- This is a helper routine called by \p PassFields() which
you may also call directly; it adds \a sourceSize to the size of
the output vertex field values. The offset of the \a sourceId
field in the output vertex array is returned.
-1 is returned if \a sourceSize would force the output to have more
than \a vtkStreamingTessellator::MaxFieldSize field values per vertex.
obj.ResetFieldList ()
- Don't pass any field values in the vertex pointer.
This is used to reset the list of fields to pass after a
successful run of vtkStreamingTessellator.
bool = obj.DontPassField (int sourceId, vtkStreamingTessellator t)
- This does the opposite of \p PassField(); it removes a field from
the output (assuming the field was set to be passed).
Returns true if any action was taken, false otherwise.
int = obj.GetOutputField (int fieldId) const
- Return the output ID of an input field.
Returns -1 if \a fieldId is not set to be passed to the output.
int = obj.GetNumberOfFields () const
- Return the number of fields being evaluated at each output vertex.
This is the length of the arrays returned by \p GetFieldIds() and
\p GetFieldOffsets().