vtkCellLocator IntersectWithLine 返回不是最近的交点

vtkCellLocator IntersectWithLine 有一个重载函数(下面),返回不是最近的交点,因为到交点的距离没有比较,就直接覆盖了。不知道原本是否就是这样。可以用其他重载代替。

  int IntersectWithLine(const double p1[3], const double p2[3], double tol, double& t, double x[3],
    double pcoords[3], int& subId, vtkIdType& cellId, vtkGenericCell* cell) override;

 

posted @ 2024-02-18 18:42  上位机  阅读(19)  评论(0编辑  收藏  举报