Exemplo n.º 1
0
        private string GetSnapControls(ShmSnapControls d)
        {
            var t = new StringBuilder(ShmDictRes.TemplateSnapControls);

            t.Replace("({[[nSmoothPatch]]})", d.NSmoothPatch.ToString());
            t.Replace("({[[tolerance]]})", d.Tolerance.ToString());
            t.Replace("({[[nSolveIter]]})", d.NSolveIter.ToString());
            t.Replace("({[[nRelaxIter]]})", d.NRelaxIter.ToString());
            t.Replace("({[[nFeatureSnapIter]]})", d.NFeatureSnapIter.ToString());
            return(t.ToString());
        }
Exemplo n.º 2
0
        public ShmDictData()
        {
            castellatedMesh = true;
            snap = true;
            addLayers = false;
            mergeTolerance = 1e-06d;
            debug = 0;

            Geometries = new List<ShmGeometry>();
            CastellatedMeshControls = new ShmCastellatedMeshControls();
            SnapControls = new ShmSnapControls();
            AddLayersControls = new ShmAddLayersControls();
            MeshQualityControls = new ShmMeshQualityControls();
        }
Exemplo n.º 3
0
        public ShmDictData()
        {
            castellatedMesh = true;
            snap            = true;
            addLayers       = false;
            mergeTolerance  = 1e-06d;
            debug           = 0;

            Geometries = new List <ShmGeometry>();
            CastellatedMeshControls = new ShmCastellatedMeshControls();
            SnapControls            = new ShmSnapControls();
            AddLayersControls       = new ShmAddLayersControls();
            MeshQualityControls     = new ShmMeshQualityControls();
        }
Exemplo n.º 4
0
 private string GetSnapControls(ShmSnapControls d)
 {
     var t = new StringBuilder(ShmDictRes.TemplateSnapControls);
     t.Replace("({[[nSmoothPatch]]})", d.NSmoothPatch.ToString());
     t.Replace("({[[tolerance]]})", d.Tolerance.ToString());
     t.Replace("({[[nSolveIter]]})", d.NSolveIter.ToString());
     t.Replace("({[[nRelaxIter]]})", d.NRelaxIter.ToString());
     t.Replace("({[[nFeatureSnapIter]]})", d.NFeatureSnapIter.ToString());
     return t.ToString();
 }