------------------------------------------------------------------------------
| 798 | |
| 799 | //------------------------------------------------------------------------------ |
| 800 | bool vtkHyperTreeGridGeometry3DImpl::IsInside(const HTG3DPoint& point) |
| 801 | { |
| 802 | if (!point.IsValid) |
| 803 | { |
| 804 | return false; |
| 805 | } |
| 806 | if (this->CellInterfaceType == -1) |
| 807 | { |
| 808 | if (point.HasInterfaceA) |
| 809 | { |
| 810 | if (point.DistanceToInterfaceA < 0) |
| 811 | { |
| 812 | return false; |
| 813 | } |
| 814 | } |
| 815 | return true; |
| 816 | } |
| 817 | else if (this->CellInterfaceType == 0) |
| 818 | { |
| 819 | if (point.DistanceToInterfaceA > 0) |
| 820 | { |
| 821 | return false; |
| 822 | } |
| 823 | if (point.DistanceToInterfaceB < 0) |
| 824 | { |
| 825 | return false; |
| 826 | } |
| 827 | return true; |
| 828 | } |
| 829 | else if (this->CellInterfaceType == 1) |
| 830 | { |
| 831 | if (point.HasInterfaceB) |
| 832 | { |
| 833 | if (point.DistanceToInterfaceB > 0) |
| 834 | { |
| 835 | return false; |
| 836 | } |
| 837 | } |
| 838 | return true; |
| 839 | } |
| 840 | else |
| 841 | { |
| 842 | // Pure cell |
| 843 | return true; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | //------------------------------------------------------------------------------ |
| 848 | void vtkHyperTreeGridGeometry3DImpl::SetXYZ(HTG3DPoint& point, const double* coords) |