/// <summary> /// Initialize the search data structures. /// </summary> public void InitSearcher() { if (_searcher == null) { _searcher = new SMeshSearcher(_mesh); _searcher.SetupElementSearch(); } }
/// <summary> /// Create interpolator based on <paramref name="sourceMesh"/> /// </summary> public MeshInterpolator2D(SMeshData sourceMesh, MeshValueType sourceType) { _smesh = sourceMesh; _sourceType = sourceType; _ssearcher = new SMeshSearcher(_smesh); _ssearcher.SetupElementSearch(); Init(); }
/// <summary> /// Constructor to use if a <see cref="SMeshSearcher"/> is already available. /// </summary> public SMeshIntersectionCalculator(SMeshData mesh, SMeshSearcher searcher) { _mesh = mesh; _searcher = searcher; }