<div><div>Would there be any complaints if I add this function?</div><div><br></div><div>// Description:</div><div>// Compute the area of the triangle.</div><div>double ComputeArea();</div></div><div><br></div><div>//----------------------------------------------------------------------------</div>
<div>double vtkTriangle::ComputeArea()</div><div>{</div><div>  double p0[3];</div><div>  double p1[3];</div><div>  double p2[3];</div><div>  this->GetPoints()->GetPoint(0, p0);</div><div>  this->GetPoints()->GetPoint(1, p1);</div>
<div>  this->GetPoints()->GetPoint(2, p2);</div><div>  return vtkTriangle::TriangleArea(p0, p1, p2);</div><div>}</div><div><br></div>Thanks,<br><br>David<br>