MCPcopy Create free account
hub / github.com/Kitware/VTK / IsInside

Method IsInside

Filters/HyperTree/vtkHyperTreeGridGeometry3DImpl.cxx:800–845  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

798
799//------------------------------------------------------------------------------
800bool 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//------------------------------------------------------------------------------
848void vtkHyperTreeGridGeometry3DImpl::SetXYZ(HTG3DPoint& point, const double* coords)

Callers 1

GenerateOneCellFaceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected