示例#1
0
        /// <summary>
        /// Get the values of Cell Types for understanding how to merge the points described in ParseAllUnstructuredGridCellsComposition.
        /// Use FillUnstructuredGridCellBuffer for getting triangle composition of these cells
        /// </summary>
        /// <returns>A VTKValue of all the cell types of this dataset. Format : VTK_INT</returns>
        public VTKValue ParseAllUnstructuredGridCellTypesDescriptor()
        {
            VTKCellTypes desc = VTKInterop.VTKParser_getUnstructuredGridCellTypesDescriptor(m_parser);
            VTKValue     res  = new VTKValue();

            res.Format = VTKValueFormat.VTK_INT;
            unsafe
            {
                res.Value = VTKInterop.VTKParser_parseAllUnstructuredGridCellTypes(m_parser);
            }
            res.NbValues = desc.NbCells;

            return(res);
        }