Ejemplo n.º 1
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();
        }
Ejemplo 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();
        }
Ejemplo n.º 3
0
 private string GetMeshQualityControls(ShmMeshQualityControls d)
 {
     var t = new StringBuilder(ShmDictRes.TemplateMeshQualityControls);
     t.Replace("({[[maxNonOrtho]]})", d.maxNonOrtho.ToString());
     t.Replace("({[[maxBoundarySkewness]]})", d.maxBoundarySkewness.ToString());
     t.Replace("({[[maxInternalSkewness]]})", d.maxInternalSkewness.ToString());
     t.Replace("({[[maxConcave]]})", d.maxConcave.ToString());
     t.Replace("({[[minVol]]})", d.minVol.ToString());
     t.Replace("({[[minTetQuality]]})", d.minTetQuality.ToString());
     t.Replace("({[[minArea]]})", d.minArea.ToString());
     t.Replace("({[[minTwist]]})", d.minTwist.ToString());
     t.Replace("({[[minDeterminant]]})", d.minDeterminant.ToString());
     t.Replace("({[[minFaceWeight]]})", d.minFaceWeight.ToString());
     t.Replace("({[[minVolRatio]]})", d.minVolRatio.ToString());
     t.Replace("({[[minTriangleTwist]]})", d.minTriangleTwist.ToString());
     t.Replace("({[[nSmoothScale]]})", d.nSmoothScale.ToString());
     t.Replace("({[[errorReduction]]})", d.errorReduction.ToString());
     t.Replace("({[[relaxed]]})", d.relaxed.ToString().ToLowerInvariant());
     t.Replace("({[[relaxedMaxNonOrtho]]})", d.relaxedMaxNonOrtho.ToString());
     return t.ToString();
 }
Ejemplo n.º 4
0
        private string GetMeshQualityControls(ShmMeshQualityControls d)
        {
            var t = new StringBuilder(ShmDictRes.TemplateMeshQualityControls);

            t.Replace("({[[maxNonOrtho]]})", d.maxNonOrtho.ToString());
            t.Replace("({[[maxBoundarySkewness]]})", d.maxBoundarySkewness.ToString());
            t.Replace("({[[maxInternalSkewness]]})", d.maxInternalSkewness.ToString());
            t.Replace("({[[maxConcave]]})", d.maxConcave.ToString());
            t.Replace("({[[minVol]]})", d.minVol.ToString());
            t.Replace("({[[minTetQuality]]})", d.minTetQuality.ToString());
            t.Replace("({[[minArea]]})", d.minArea.ToString());
            t.Replace("({[[minTwist]]})", d.minTwist.ToString());
            t.Replace("({[[minDeterminant]]})", d.minDeterminant.ToString());
            t.Replace("({[[minFaceWeight]]})", d.minFaceWeight.ToString());
            t.Replace("({[[minVolRatio]]})", d.minVolRatio.ToString());
            t.Replace("({[[minTriangleTwist]]})", d.minTriangleTwist.ToString());
            t.Replace("({[[nSmoothScale]]})", d.nSmoothScale.ToString());
            t.Replace("({[[errorReduction]]})", d.errorReduction.ToString());
            t.Replace("({[[relaxed]]})", d.relaxed.ToString().ToLowerInvariant());
            t.Replace("({[[relaxedMaxNonOrtho]]})", d.relaxedMaxNonOrtho.ToString());
            return(t.ToString());
        }