示例#1
0
 /// <summary>
 /// Initialize the search data structures.
 /// </summary>
 public void InitSearcher()
 {
     if (_searcher == null)
     {
         _searcher = new SMeshSearcher(_mesh);
         _searcher.SetupElementSearch();
     }
 }
示例#2
0
 /// <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();
 }
示例#3
0
 /// <summary>
 /// Constructor to use if a <see cref="SMeshSearcher"/> is already available.
 /// </summary>
 public SMeshIntersectionCalculator(SMeshData mesh, SMeshSearcher searcher)
 {
     _mesh     = mesh;
     _searcher = searcher;
 }