Material: mat card parser, there are two parsers in FreeCAD, make some comments about the existance of each other

This commit is contained in:
Bernd Hahnebach
2019-02-12 07:38:55 +01:00
committed by Yorik van Havre
parent 79b7041336
commit 7f2ad7fbbf
2 changed files with 6 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ Version:
"""
# see comments in module importFCMat, there is a independent parser implementaion for reading and writing FCMat files
# inside FreeCAD the importFCMat.py parser defs are used
def importFCMat(fileName):
"Read a FCMat file into a dictionary"
try:

View File

@@ -83,6 +83,8 @@ def decode(name):
# in standard ini file format a = in the value without any encapsulation or string quotes is not allowed (AFAIK)
# https://en.wikipedia.org/wiki/INI_file
# http://www.docuxplorer.com/WebHelp/INI_File_Format.htm
# in the module Material.py is another implementaion of reading and writing FCMat files which uses the module ConfigParser
# it seams these are not used inside FreeCAD
# Metainformations
# first five lines are the same in any card file