ActiViz .NET  5.8.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions
Kitware.VTK.vtkPolygon Class Reference

vtkPolygon - a cell that represents an n-sided polygon More...

Inheritance diagram for Kitware.VTK.vtkPolygon:
[legend]
Collaboration diagram for Kitware.VTK.vtkPolygon:
[legend]

List of all members.

Public Member Functions

 vtkPolygon (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkPolygon ()
 Undocumented Block.
override int CellBoundary (int subId, IntPtr pcoords, vtkIdList pts)
 See the vtkCell API for descriptions of these methods.
override void Clip (double value, vtkDataArray cellScalars, vtkIncrementalPointLocator locator, vtkCellArray tris, vtkPointData inPd, vtkPointData outPd, vtkCellData inCd, int cellId, vtkCellData outCd, int insideOut)
 See the vtkCell API for descriptions of these methods.
double ComputeArea ()
 Compute the area of a polygon. This is a convenience function which simply calls static double ComputeArea(vtkPoints *p, vtkIdType numPts, vtkIdType *pts, double normal[3]); with the appropriate parameters from the instantiated vtkPolygon.
override void Contour (double value, vtkDataArray cellScalars, vtkIncrementalPointLocator locator, vtkCellArray verts, vtkCellArray lines, vtkCellArray polys, vtkPointData inPd, vtkPointData outPd, vtkCellData inCd, int cellId, vtkCellData outCd)
 See the vtkCell API for descriptions of these methods.
override void Derivatives (int subId, IntPtr pcoords, IntPtr values, int dim, IntPtr derivs)
 See the vtkCell API for descriptions of these methods.
override void EvaluateLocation (ref int subId, IntPtr pcoords, IntPtr x, IntPtr weights)
 See the vtkCell API for descriptions of these methods.
override int EvaluatePosition (IntPtr x, IntPtr closestPoint, ref int subId, IntPtr pcoords, ref double dist2, IntPtr weights)
 See the vtkCell API for descriptions of these methods.
override int GetCellDimension ()
 See the vtkCell API for descriptions of these methods.
override int GetCellType ()
 See the vtkCell API for descriptions of these methods.
override vtkCell GetEdge (int edgeId)
 See the vtkCell API for descriptions of these methods.
override vtkCell GetFace (int arg0)
 See the vtkCell API for descriptions of these methods.
override int GetNumberOfEdges ()
 See the vtkCell API for descriptions of these methods.
override int GetNumberOfFaces ()
 See the vtkCell API for descriptions of these methods.
virtual bool GetUseMVCInterpolation ()
 Set/Get the flag indicating whether to use Mean Value Coordinate for the interpolation. If true, InterpolateFunctions() uses the Mean Value Coordinate to compute weights. Otherwise, the conventional 1/r^2 method is used. The UseMVCInterpolation parameter is set to false by default.
override void InterpolateDerivs (IntPtr x, IntPtr derivs)
 Compute the interpolation functions/derivatives. (aka shape functions/derivatives) Two interpolation algorithms are available: 1/r^2 and Mean Value Coordinate. The former is used by default. To use the second algorithm, set UseMVCInterpolation to be true. The function assumes the input point lies on the polygon plane without checking that.
override void InterpolateFunctions (IntPtr x, IntPtr sf)
 Compute the interpolation functions/derivatives. (aka shape functions/derivatives) Two interpolation algorithms are available: 1/r^2 and Mean Value Coordinate. The former is used by default. To use the second algorithm, set UseMVCInterpolation to be true. The function assumes the input point lies on the polygon plane without checking that.
override int IntersectWithLine (IntPtr p1, IntPtr p2, double tol, ref double t, IntPtr x, IntPtr pcoords, ref int subId)
 See the vtkCell API for descriptions of these methods.
override int IsA (string type)
 Undocumented Block.
override int IsPrimaryCell ()
 See the vtkCell API for descriptions of these methods.
new vtkPolygon NewInstance ()
 Undocumented Block.
int NonDegenerateTriangulate (vtkIdList outTris)
 Same as Triangulate(vtkIdList *outTris) but with a first pass to split the polygon into non-degenerate polygons.
int ParameterizePolygon (IntPtr p0, IntPtr p10, ref double l10, IntPtr p20, ref double l20, IntPtr n)
 Create a local s-t coordinate system for a polygon. The point p0 is the origin of the local system, p10 is s-axis vector, and p20 is the t-axis vector. (These are expressed in the modeling coordinate system and are vectors of dimension [3].) The values l20 and l20 are the lengths of the vectors p10 and p20, and n is the polygon normal.
virtual void SetUseMVCInterpolation (bool _arg)
 Set/Get the flag indicating whether to use Mean Value Coordinate for the interpolation. If true, InterpolateFunctions() uses the Mean Value Coordinate to compute weights. Otherwise, the conventional 1/r^2 method is used. The UseMVCInterpolation parameter is set to false by default.
override int Triangulate (int index, vtkIdList ptIds, vtkPoints pts)
 See the vtkCell API for descriptions of these methods.
int Triangulate (vtkIdList outTris)
 Triangulate this polygon. The user must provide the vtkIdList outTris. On output, the outTris list contains the ids of the points defining the triangulation. The ids are ordered into groups of three: each three-group defines one triangle.

Static Public Member Functions

static new vtkPolygon New ()
 Undocumented Block.
static double ComputeArea (vtkPoints p, int numPts, IntPtr pts, IntPtr normal)
 Compute the area of a polygon in 3D. The area is returned, as well as the normal (a side effect of using this method). If you desire to compute the area of a triangle, use vtkTriangleArea which is faster. If you already have a vtkPolygon instantiated, a convenience function, ComputeArea() is provided.
static void ComputeCentroid (vtkIdTypeArray ids, vtkPoints pts, IntPtr centroid)
 Compute the centroid of a set of points.
static void ComputeNormal (vtkPoints p, int numPts, IntPtr pts, IntPtr n)
 Polygon specific methods.
static void ComputeNormal (vtkPoints p, IntPtr n)
 Polygon specific methods.
static void ComputeNormal (vtkIdTypeArray ids, vtkPoints pts, IntPtr n)
 Polygon specific methods.
static void ComputeNormal (int numPts, IntPtr pts, IntPtr n)
 Compute the polygon normal from an array of points. This version assumes that the polygon is convex, and looks for the first valid normal.
static double DistanceToPolygon (IntPtr x, int numPts, IntPtr pts, IntPtr bounds, IntPtr closest)
 Compute the distance of a point to a polygon. The closest point on the polygon is also returned. The bounds should be provided to accelerate the computation.
static int IntersectConvex2DCells (vtkCell cell1, vtkCell cell2, double tol, IntPtr p0, IntPtr p1)
 Intersect two convex 2D polygons to produce a line segment as output. The return status of the methods indicated no intersection (returns 0); a single point of intersection (returns 1); or a line segment (i.e., two points of intersection, returns 2). The points of intersection are returned in the arrays p0 and p1. If less than two points of intersection are generated then p1 and/or p0 may be indeterminiate. Finally, if the two convex polygons are parallel, then "0" is returned (i.e., no intersection) even if the triangles lie on one another.
static int IntersectPolygonWithPolygon (int npts, IntPtr pts, IntPtr bounds, int npts2, IntPtr pts2, IntPtr bounds2, double tol, IntPtr x)
 Method intersects two polygons. You must supply the number of points and point coordinates (npts, *pts) and the bounding box (bounds) of the two polygons. Also supply a tolerance squared for controlling error. The method returns 1 if there is an intersection, and 0 if not. A single point of intersection x[3] is also returned if there is an intersection.
static new int IsTypeOf (string type)
 Undocumented Block.
static int PointInPolygon (IntPtr x, int numPts, IntPtr pts, IntPtr bounds, IntPtr n)
 Determine whether point is inside polygon. Function uses ray-casting to determine if point is inside polygon. Works for arbitrary polygon shape (e.g., non-convex). Returns 0 if point is not in polygon; 1 if it is. Can also return -1 to indicate degenerate polygon.
static new vtkPolygon SafeDownCast (vtkObjectBase o)
 Undocumented Block.

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkPolygon"
 Automatically generated type registration mechanics.

Static Public Attributes

static new readonly string MRClassNameKey = "10vtkPolygon"
 Automatically generated type registration mechanics.

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Private Member Functions

static internal IntPtr vtkPolygon_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkPolygon_CellBoundary_01 (HandleRef pThis, int subId, IntPtr pcoords, HandleRef pts)
static internal void vtkPolygon_Clip_02 (HandleRef pThis, double value, HandleRef cellScalars, HandleRef locator, HandleRef tris, HandleRef inPd, HandleRef outPd, HandleRef inCd, int cellId, HandleRef outCd, int insideOut)
static internal double vtkPolygon_ComputeArea_03 (HandleRef pThis)
static internal double vtkPolygon_ComputeArea_04 (HandleRef p, int numPts, IntPtr pts, IntPtr normal)
static internal void vtkPolygon_ComputeCentroid_05 (HandleRef ids, HandleRef pts, IntPtr centroid)
static internal void vtkPolygon_ComputeNormal_06 (HandleRef p, int numPts, IntPtr pts, IntPtr n)
static internal void vtkPolygon_ComputeNormal_07 (HandleRef p, IntPtr n)
static internal void vtkPolygon_ComputeNormal_08 (HandleRef ids, HandleRef pts, IntPtr n)
static internal void vtkPolygon_ComputeNormal_09 (int numPts, IntPtr pts, IntPtr n)
static internal void vtkPolygon_Contour_10 (HandleRef pThis, double value, HandleRef cellScalars, HandleRef locator, HandleRef verts, HandleRef lines, HandleRef polys, HandleRef inPd, HandleRef outPd, HandleRef inCd, int cellId, HandleRef outCd)
static internal void vtkPolygon_Derivatives_11 (HandleRef pThis, int subId, IntPtr pcoords, IntPtr values, int dim, IntPtr derivs)
static internal double vtkPolygon_DistanceToPolygon_12 (IntPtr x, int numPts, IntPtr pts, IntPtr bounds, IntPtr closest)
static internal void vtkPolygon_EvaluateLocation_13 (HandleRef pThis, ref int subId, IntPtr pcoords, IntPtr x, IntPtr weights)
static internal int vtkPolygon_EvaluatePosition_14 (HandleRef pThis, IntPtr x, IntPtr closestPoint, ref int subId, IntPtr pcoords, ref double dist2, IntPtr weights)
static internal int vtkPolygon_GetCellDimension_15 (HandleRef pThis)
static internal int vtkPolygon_GetCellType_16 (HandleRef pThis)
static internal IntPtr vtkPolygon_GetEdge_17 (HandleRef pThis, int edgeId, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkPolygon_GetFace_18 (HandleRef pThis, int arg0, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkPolygon_GetNumberOfEdges_19 (HandleRef pThis)
static internal int vtkPolygon_GetNumberOfFaces_20 (HandleRef pThis)
static internal byte vtkPolygon_GetUseMVCInterpolation_21 (HandleRef pThis)
static internal void vtkPolygon_InterpolateDerivs_22 (HandleRef pThis, IntPtr x, IntPtr derivs)
static internal void vtkPolygon_InterpolateFunctions_23 (HandleRef pThis, IntPtr x, IntPtr sf)
static internal int vtkPolygon_IntersectConvex2DCells_24 (HandleRef cell1, HandleRef cell2, double tol, IntPtr p0, IntPtr p1)
static internal int vtkPolygon_IntersectPolygonWithPolygon_25 (int npts, IntPtr pts, IntPtr bounds, int npts2, IntPtr pts2, IntPtr bounds2, double tol, IntPtr x)
static internal int vtkPolygon_IntersectWithLine_26 (HandleRef pThis, IntPtr p1, IntPtr p2, double tol, ref double t, IntPtr x, IntPtr pcoords, ref int subId)
static internal int vtkPolygon_IsA_27 (HandleRef pThis, string type)
static internal int vtkPolygon_IsPrimaryCell_28 (HandleRef pThis)
static internal int vtkPolygon_IsTypeOf_29 (string type)
static internal IntPtr vtkPolygon_NewInstance_31 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkPolygon_NonDegenerateTriangulate_32 (HandleRef pThis, HandleRef outTris)
static internal int vtkPolygon_ParameterizePolygon_33 (HandleRef pThis, IntPtr p0, IntPtr p10, ref double l10, IntPtr p20, ref double l20, IntPtr n)
static internal int vtkPolygon_PointInPolygon_34 (IntPtr x, int numPts, IntPtr pts, IntPtr bounds, IntPtr n)
static internal IntPtr vtkPolygon_SafeDownCast_35 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkPolygon_SetUseMVCInterpolation_36 (HandleRef pThis, byte _arg)
static internal int vtkPolygon_Triangulate_37 (HandleRef pThis, int index, HandleRef ptIds, HandleRef pts)
static internal int vtkPolygon_Triangulate_38 (HandleRef pThis, HandleRef outTris)

Static Private Member Functions

static vtkPolygon ()
 Automatically generated type registration mechanics.

Detailed Description

vtkPolygon - a cell that represents an n-sided polygon

Description vtkPolygon is a concrete implementation of vtkCell to represent a 2D n-sided polygon. The polygons cannot have any internal holes, and cannot self-intersect. Define the polygon with n-points ordered in the counter- clockwise direction; do not repeat the last point.


Constructor & Destructor Documentation

static Kitware.VTK.vtkPolygon.vtkPolygon ( ) [static, private]

Automatically generated type registration mechanics.

Kitware.VTK.vtkPolygon.vtkPolygon ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Undocumented Block.


Member Function Documentation

override int Kitware.VTK.vtkPolygon.CellBoundary ( int  subId,
IntPtr  pcoords,
vtkIdList  pts 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override void Kitware.VTK.vtkPolygon.Clip ( double  value,
vtkDataArray  cellScalars,
vtkIncrementalPointLocator  locator,
vtkCellArray  tris,
vtkPointData  inPd,
vtkPointData  outPd,
vtkCellData  inCd,
int  cellId,
vtkCellData  outCd,
int  insideOut 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

Compute the area of a polygon. This is a convenience function which simply calls static double ComputeArea(vtkPoints *p, vtkIdType numPts, vtkIdType *pts, double normal[3]); with the appropriate parameters from the instantiated vtkPolygon.

static double Kitware.VTK.vtkPolygon.ComputeArea ( vtkPoints  p,
int  numPts,
IntPtr  pts,
IntPtr  normal 
) [static]

Compute the area of a polygon in 3D. The area is returned, as well as the normal (a side effect of using this method). If you desire to compute the area of a triangle, use vtkTriangleArea which is faster. If you already have a vtkPolygon instantiated, a convenience function, ComputeArea() is provided.

static void Kitware.VTK.vtkPolygon.ComputeCentroid ( vtkIdTypeArray  ids,
vtkPoints  pts,
IntPtr  centroid 
) [static]

Compute the centroid of a set of points.

static void Kitware.VTK.vtkPolygon.ComputeNormal ( vtkPoints  p,
int  numPts,
IntPtr  pts,
IntPtr  n 
) [static]

Polygon specific methods.

static void Kitware.VTK.vtkPolygon.ComputeNormal ( vtkPoints  p,
IntPtr  n 
) [static]

Polygon specific methods.

static void Kitware.VTK.vtkPolygon.ComputeNormal ( vtkIdTypeArray  ids,
vtkPoints  pts,
IntPtr  n 
) [static]

Polygon specific methods.

static void Kitware.VTK.vtkPolygon.ComputeNormal ( int  numPts,
IntPtr  pts,
IntPtr  n 
) [static]

Compute the polygon normal from an array of points. This version assumes that the polygon is convex, and looks for the first valid normal.

override void Kitware.VTK.vtkPolygon.Contour ( double  value,
vtkDataArray  cellScalars,
vtkIncrementalPointLocator  locator,
vtkCellArray  verts,
vtkCellArray  lines,
vtkCellArray  polys,
vtkPointData  inPd,
vtkPointData  outPd,
vtkCellData  inCd,
int  cellId,
vtkCellData  outCd 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override void Kitware.VTK.vtkPolygon.Derivatives ( int  subId,
IntPtr  pcoords,
IntPtr  values,
int  dim,
IntPtr  derivs 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override void Kitware.VTK.vtkPolygon.Dispose ( bool  disposing) [protected]

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Reimplemented from Kitware.VTK.vtkCell.

static double Kitware.VTK.vtkPolygon.DistanceToPolygon ( IntPtr  x,
int  numPts,
IntPtr  pts,
IntPtr  bounds,
IntPtr  closest 
) [static]

Compute the distance of a point to a polygon. The closest point on the polygon is also returned. The bounds should be provided to accelerate the computation.

override void Kitware.VTK.vtkPolygon.EvaluateLocation ( ref int  subId,
IntPtr  pcoords,
IntPtr  x,
IntPtr  weights 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override int Kitware.VTK.vtkPolygon.EvaluatePosition ( IntPtr  x,
IntPtr  closestPoint,
ref int  subId,
IntPtr  pcoords,
ref double  dist2,
IntPtr  weights 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override int Kitware.VTK.vtkPolygon.GetCellDimension ( ) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override int Kitware.VTK.vtkPolygon.GetCellType ( ) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override vtkCell Kitware.VTK.vtkPolygon.GetEdge ( int  edgeId) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

Here is the call graph for this function:

override vtkCell Kitware.VTK.vtkPolygon.GetFace ( int  arg0) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

Here is the call graph for this function:

override int Kitware.VTK.vtkPolygon.GetNumberOfEdges ( ) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override int Kitware.VTK.vtkPolygon.GetNumberOfFaces ( ) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

Set/Get the flag indicating whether to use Mean Value Coordinate for the interpolation. If true, InterpolateFunctions() uses the Mean Value Coordinate to compute weights. Otherwise, the conventional 1/r^2 method is used. The UseMVCInterpolation parameter is set to false by default.

override void Kitware.VTK.vtkPolygon.InterpolateDerivs ( IntPtr  x,
IntPtr  derivs 
) [virtual]

Compute the interpolation functions/derivatives. (aka shape functions/derivatives) Two interpolation algorithms are available: 1/r^2 and Mean Value Coordinate. The former is used by default. To use the second algorithm, set UseMVCInterpolation to be true. The function assumes the input point lies on the polygon plane without checking that.

Reimplemented from Kitware.VTK.vtkCell.

override void Kitware.VTK.vtkPolygon.InterpolateFunctions ( IntPtr  x,
IntPtr  sf 
) [virtual]

Compute the interpolation functions/derivatives. (aka shape functions/derivatives) Two interpolation algorithms are available: 1/r^2 and Mean Value Coordinate. The former is used by default. To use the second algorithm, set UseMVCInterpolation to be true. The function assumes the input point lies on the polygon plane without checking that.

Reimplemented from Kitware.VTK.vtkCell.

static int Kitware.VTK.vtkPolygon.IntersectConvex2DCells ( vtkCell  cell1,
vtkCell  cell2,
double  tol,
IntPtr  p0,
IntPtr  p1 
) [static]

Intersect two convex 2D polygons to produce a line segment as output. The return status of the methods indicated no intersection (returns 0); a single point of intersection (returns 1); or a line segment (i.e., two points of intersection, returns 2). The points of intersection are returned in the arrays p0 and p1. If less than two points of intersection are generated then p1 and/or p0 may be indeterminiate. Finally, if the two convex polygons are parallel, then "0" is returned (i.e., no intersection) even if the triangles lie on one another.

static int Kitware.VTK.vtkPolygon.IntersectPolygonWithPolygon ( int  npts,
IntPtr  pts,
IntPtr  bounds,
int  npts2,
IntPtr  pts2,
IntPtr  bounds2,
double  tol,
IntPtr  x 
) [static]

Method intersects two polygons. You must supply the number of points and point coordinates (npts, *pts) and the bounding box (bounds) of the two polygons. Also supply a tolerance squared for controlling error. The method returns 1 if there is an intersection, and 0 if not. A single point of intersection x[3] is also returned if there is an intersection.

override int Kitware.VTK.vtkPolygon.IntersectWithLine ( IntPtr  p1,
IntPtr  p2,
double  tol,
ref double  t,
IntPtr  x,
IntPtr  pcoords,
ref int  subId 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

override int Kitware.VTK.vtkPolygon.IsA ( string  type) [virtual]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkCell.

override int Kitware.VTK.vtkPolygon.IsPrimaryCell ( ) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

static new int Kitware.VTK.vtkPolygon.IsTypeOf ( string  type) [static]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkCell.

static new vtkPolygon Kitware.VTK.vtkPolygon.New ( ) [static]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkObject.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkCell.

Same as Triangulate(vtkIdList *outTris) but with a first pass to split the polygon into non-degenerate polygons.

int Kitware.VTK.vtkPolygon.ParameterizePolygon ( IntPtr  p0,
IntPtr  p10,
ref double  l10,
IntPtr  p20,
ref double  l20,
IntPtr  n 
)

Create a local s-t coordinate system for a polygon. The point p0 is the origin of the local system, p10 is s-axis vector, and p20 is the t-axis vector. (These are expressed in the modeling coordinate system and are vectors of dimension [3].) The values l20 and l20 are the lengths of the vectors p10 and p20, and n is the polygon normal.

static int Kitware.VTK.vtkPolygon.PointInPolygon ( IntPtr  x,
int  numPts,
IntPtr  pts,
IntPtr  bounds,
IntPtr  n 
) [static]

Determine whether point is inside polygon. Function uses ray-casting to determine if point is inside polygon. Works for arbitrary polygon shape (e.g., non-convex). Returns 0 if point is not in polygon; 1 if it is. Can also return -1 to indicate degenerate polygon.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkCell.

Here is the call graph for this function:

virtual void Kitware.VTK.vtkPolygon.SetUseMVCInterpolation ( bool  _arg) [virtual]

Set/Get the flag indicating whether to use Mean Value Coordinate for the interpolation. If true, InterpolateFunctions() uses the Mean Value Coordinate to compute weights. Otherwise, the conventional 1/r^2 method is used. The UseMVCInterpolation parameter is set to false by default.

override int Kitware.VTK.vtkPolygon.Triangulate ( int  index,
vtkIdList  ptIds,
vtkPoints  pts 
) [virtual]

See the vtkCell API for descriptions of these methods.

Reimplemented from Kitware.VTK.vtkCell.

Triangulate this polygon. The user must provide the vtkIdList outTris. On output, the outTris list contains the ids of the points defining the triangulation. The ids are ordered into groups of three: each three-group defines one triangle.

static internal int Kitware.VTK.vtkPolygon.vtkPolygon_CellBoundary_01 ( HandleRef  pThis,
int  subId,
IntPtr  pcoords,
HandleRef  pts 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_Clip_02 ( HandleRef  pThis,
double  value,
HandleRef  cellScalars,
HandleRef  locator,
HandleRef  tris,
HandleRef  inPd,
HandleRef  outPd,
HandleRef  inCd,
int  cellId,
HandleRef  outCd,
int  insideOut 
) [private]
static internal double Kitware.VTK.vtkPolygon.vtkPolygon_ComputeArea_03 ( HandleRef  pThis) [private]
static internal double Kitware.VTK.vtkPolygon.vtkPolygon_ComputeArea_04 ( HandleRef  p,
int  numPts,
IntPtr  pts,
IntPtr  normal 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_ComputeCentroid_05 ( HandleRef  ids,
HandleRef  pts,
IntPtr  centroid 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_ComputeNormal_06 ( HandleRef  p,
int  numPts,
IntPtr  pts,
IntPtr  n 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_ComputeNormal_07 ( HandleRef  p,
IntPtr  n 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_ComputeNormal_08 ( HandleRef  ids,
HandleRef  pts,
IntPtr  n 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_ComputeNormal_09 ( int  numPts,
IntPtr  pts,
IntPtr  n 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_Contour_10 ( HandleRef  pThis,
double  value,
HandleRef  cellScalars,
HandleRef  locator,
HandleRef  verts,
HandleRef  lines,
HandleRef  polys,
HandleRef  inPd,
HandleRef  outPd,
HandleRef  inCd,
int  cellId,
HandleRef  outCd 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_Derivatives_11 ( HandleRef  pThis,
int  subId,
IntPtr  pcoords,
IntPtr  values,
int  dim,
IntPtr  derivs 
) [private]
static internal double Kitware.VTK.vtkPolygon.vtkPolygon_DistanceToPolygon_12 ( IntPtr  x,
int  numPts,
IntPtr  pts,
IntPtr  bounds,
IntPtr  closest 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_EvaluateLocation_13 ( HandleRef  pThis,
ref int  subId,
IntPtr  pcoords,
IntPtr  x,
IntPtr  weights 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_EvaluatePosition_14 ( HandleRef  pThis,
IntPtr  x,
IntPtr  closestPoint,
ref int  subId,
IntPtr  pcoords,
ref double  dist2,
IntPtr  weights 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_GetCellDimension_15 ( HandleRef  pThis) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_GetCellType_16 ( HandleRef  pThis) [private]
static internal IntPtr Kitware.VTK.vtkPolygon.vtkPolygon_GetEdge_17 ( HandleRef  pThis,
int  edgeId,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkPolygon.vtkPolygon_GetFace_18 ( HandleRef  pThis,
int  arg0,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_GetNumberOfEdges_19 ( HandleRef  pThis) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_GetNumberOfFaces_20 ( HandleRef  pThis) [private]
static internal byte Kitware.VTK.vtkPolygon.vtkPolygon_GetUseMVCInterpolation_21 ( HandleRef  pThis) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_InterpolateDerivs_22 ( HandleRef  pThis,
IntPtr  x,
IntPtr  derivs 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_InterpolateFunctions_23 ( HandleRef  pThis,
IntPtr  x,
IntPtr  sf 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_IntersectConvex2DCells_24 ( HandleRef  cell1,
HandleRef  cell2,
double  tol,
IntPtr  p0,
IntPtr  p1 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_IntersectPolygonWithPolygon_25 ( int  npts,
IntPtr  pts,
IntPtr  bounds,
int  npts2,
IntPtr  pts2,
IntPtr  bounds2,
double  tol,
IntPtr  x 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_IntersectWithLine_26 ( HandleRef  pThis,
IntPtr  p1,
IntPtr  p2,
double  tol,
ref double  t,
IntPtr  x,
IntPtr  pcoords,
ref int  subId 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_IsA_27 ( HandleRef  pThis,
string  type 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_IsPrimaryCell_28 ( HandleRef  pThis) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_IsTypeOf_29 ( string  type) [private]
static internal IntPtr Kitware.VTK.vtkPolygon.vtkPolygon_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkPolygon.vtkPolygon_NewInstance_31 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_NonDegenerateTriangulate_32 ( HandleRef  pThis,
HandleRef  outTris 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_ParameterizePolygon_33 ( HandleRef  pThis,
IntPtr  p0,
IntPtr  p10,
ref double  l10,
IntPtr  p20,
ref double  l20,
IntPtr  n 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_PointInPolygon_34 ( IntPtr  x,
int  numPts,
IntPtr  pts,
IntPtr  bounds,
IntPtr  n 
) [private]
static internal IntPtr Kitware.VTK.vtkPolygon.vtkPolygon_SafeDownCast_35 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkPolygon.vtkPolygon_SetUseMVCInterpolation_36 ( HandleRef  pThis,
byte  _arg 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_Triangulate_37 ( HandleRef  pThis,
int  index,
HandleRef  ptIds,
HandleRef  pts 
) [private]
static internal int Kitware.VTK.vtkPolygon.vtkPolygon_Triangulate_38 ( HandleRef  pThis,
HandleRef  outTris 
) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkPolygon.MRClassNameKey = "10vtkPolygon" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkCell.

new const string Kitware.VTK.vtkPolygon.MRFullTypeName = "Kitware.VTK.vtkPolygon"

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkCell.


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