Beispiel #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();
        }
Beispiel #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();
        }
 private string GetAddLayersControls(ShmAddLayersControls d)
 {
     var t = new StringBuilder(ShmDictRes.TemplateAddLayersControls);
     t.Replace("({[[relativeSizes]]})", d.relativeSizes.ToString().ToLowerInvariant());
     t.Replace("({[[expansionRatio]]})", d.expansionRatio.ToString());
     t.Replace("({[[finalLayerThickness]]})", d.finalLayerThickness.ToString());
     t.Replace("({[[minThickness]]})", d.minThickness.ToString());
     t.Replace("({[[nGrow]]})", d.nGrow.ToString());
     t.Replace("({[[featureAngle]]})", d.featureAngle.ToString());
     t.Replace("({[[nRelaxIter]]})", d.nRelaxIter.ToString());
     t.Replace("({[[nSmoothSurfaceNormals]]})", d.nSmoothSurfaceNormals.ToString());
     t.Replace("({[[nSmoothNormals]]})", d.nSmoothNormals.ToString());
     t.Replace("({[[nSmoothThickness]]})", d.nSmoothThickness.ToString());
     t.Replace("({[[maxFaceThicknessRatio]]})", d.maxFaceThicknessRatio.ToString());
     t.Replace("({[[maxThicknessToMedialRatio]]})", d.maxThicknessToMedialRatio.ToString());
     t.Replace("({[[minMedianAxisAngle]]})", d.minMedianAxisAngle.ToString());
     t.Replace("({[[nBufferCellsNoExtrude]]})", d.nBufferCellsNoExtrude.ToString());
     t.Replace("({[[nLayerIter]]})", d.nLayerIter.ToString());
     t.Replace("({[[nRelaxedIter]]})", d.nRelaxedIter.ToString());
     return t.ToString();
 }
Beispiel #4
0
        private string GetAddLayersControls(ShmAddLayersControls d)
        {
            var t = new StringBuilder(ShmDictRes.TemplateAddLayersControls);

            t.Replace("({[[relativeSizes]]})", d.relativeSizes.ToString().ToLowerInvariant());
            t.Replace("({[[expansionRatio]]})", d.expansionRatio.ToString());
            t.Replace("({[[finalLayerThickness]]})", d.finalLayerThickness.ToString());
            t.Replace("({[[minThickness]]})", d.minThickness.ToString());
            t.Replace("({[[nGrow]]})", d.nGrow.ToString());
            t.Replace("({[[featureAngle]]})", d.featureAngle.ToString());
            t.Replace("({[[nRelaxIter]]})", d.nRelaxIter.ToString());
            t.Replace("({[[nSmoothSurfaceNormals]]})", d.nSmoothSurfaceNormals.ToString());
            t.Replace("({[[nSmoothNormals]]})", d.nSmoothNormals.ToString());
            t.Replace("({[[nSmoothThickness]]})", d.nSmoothThickness.ToString());
            t.Replace("({[[maxFaceThicknessRatio]]})", d.maxFaceThicknessRatio.ToString());
            t.Replace("({[[maxThicknessToMedialRatio]]})", d.maxThicknessToMedialRatio.ToString());
            t.Replace("({[[minMedianAxisAngle]]})", d.minMedianAxisAngle.ToString());
            t.Replace("({[[nBufferCellsNoExtrude]]})", d.nBufferCellsNoExtrude.ToString());
            t.Replace("({[[nLayerIter]]})", d.nLayerIter.ToString());
            t.Replace("({[[nRelaxedIter]]})", d.nRelaxedIter.ToString());
            return(t.ToString());
        }