示例#1
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_Tetrahedralization", Tetrahedralization.ExportYAML(container));
            node.Add("m_ProbeSets", IsReadProbeSets(container.Version) ? ProbeSets.ExportYAML(container) : YAMLSequenceNode.Empty);
            node.Add("m_Positions", IsReadProbeSets(container.Version) ? Positions.ExportYAML(container) : YAMLSequenceNode.Empty);
            node.Add("m_NonTetrahedralizedProbeSetIndexMap", IsReadNonTetrahedralizedProbeSetIndexMap(container.Version) ? NonTetrahedralizedProbeSetIndexMap.ExportYAML(container) : YAMLSequenceNode.Empty);
            return(node);
        }
示例#2
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
#warning TODO:
            YAMLMappingNode node = new YAMLMappingNode();
            node.Add(TetrahedralizationName, Tetrahedralization.ExportYAML(container));
            node.Add(ProbeSetsName, HasProbeSets(container.Version) ? ProbeSets.ExportYAML(container) : YAMLSequenceNode.Empty);
            node.Add(PositionsName, HasProbeSets(container.Version) ? Positions.ExportYAML(container) : YAMLSequenceNode.Empty);
            node.Add(NonTetrahedralizedProbeSetIndexMapName, HasNonTetrahedralizedProbeSetIndexMap(container.Version) ? NonTetrahedralizedProbeSetIndexMap.ExportYAML(container) : YAMLSequenceNode.Empty);
            return(node);
        }