# Path: importerConstants.py
# MIN_0   = 0.0
# 
# MIN_PI  = -pi
# 
# MIN_PI2 = -pi / 2
# 
# MIN_INF = float('-inf')
# 
# MAX_2PI = 2 * pi
# 
# MAX_PI  = pi
# 
# MAX_PI2 = pi / 2
# 
# MAX_INF = float('inf')
# 
# MAX_LEN = 2e+100
# 
# Path: importerConstants.py
# CENTER = VEC(0, 0, 0)
# 
# DIR_X  = VEC(1, 0, 0)
# 
# DIR_Y  = VEC(0, 1, 0)
# 
# DIR_Z  = VEC(0, 0, 1)
# 
# ENCODING_FS      = 'utf8'


import traceback, Part, Draft, os, FreeCAD, re
from importerUtils              import *
from FreeCAD                    import Vector as VEC, Rotation as ROT, Placement as PLC, Matrix as MAT, Base
from math                       import pi, fabs, degrees, asin, sin, cos, tan, atan2, ceil, e, cosh, sinh, tanh, acos, acosh, asin, asinh, atan, atanh, log, sqrt, exp, log10
from importerConstants          import MIN_0, MIN_PI, MIN_PI2, MIN_INF, MAX_2PI, MAX_PI, MAX_PI2, MAX_INF, MAX_LEN
from importerConstants          import CENTER, DIR_X, DIR_Y, DIR_Z, ENCODING_FS

			bc1, i = readBS3Curve(chunks, i)
			bc2, i = readBS2Curve(chunks, i)  # nullbs
		return i
	def setSrfSrvVBlend(self, chunks, index, inventor):
		i = self.setVarBlend(chunks, index, inventor, 'srf_srf_v_bl_spl_sur')
		return i
	def setTaper(self, chunks, index, inventor, subtype = 'taper_spl_sur'):
		self.surface, i = readSurface(chunks, index)
		self.curve, i   = readCurve(chunks, i)
		self.pcurve, i  = readBS2Curve(chunks, i)
		f1, i = getFloat(chunks, i)
		i = self.setSurfaceShape(chunks, i, inventor, subtype)
		return i
	def setOrtho(self, chunks, index, inventor):
		i = self.setTaper(chunks, index, inventor, 'ortho_spl_sur')
		self.sense, i = getBoolean(chunks, i)
		return i
	def setEdgeTaper(self, chunks, index, inventor, subtype = 'edge_tpr_spl_sur'):
		i = self.setTaper(chunks, index, inventor, subtype)
		self.draft, i = getVector(chunks, i)
		return i
	def setShadowTaper(self, chunks, index, inventor):
		i = self.setEdgeTaper(chunks, index, inventor, 'shadow_tpr_spl_sur')
		self.sine, i   = getFloat(chunks, i)
		self.cosine, i = getFloat(chunks, i)
		return i
	def setRuledTaper(self, chunks, index, inventor):
		i = self.setEdgeTaper(chunks, index, inventor, 'ruled_tpr_spl_sur')
		self.sine, i   = getFloat(chunks, i)
		self.cosine, i = getFloat(chunks, i)

# Path: importerConstants.py
# MIN_0   = 0.0
# 
# MIN_PI  = -pi
# 
# MIN_PI2 = -pi / 2
# 
# MIN_INF = float('-inf')
# 
# MAX_2PI = 2 * pi
# 
# MAX_PI  = pi
# 
# MAX_PI2 = pi / 2
# 
# MAX_INF = float('inf')
# 
# MAX_LEN = 2e+100
# 
# Path: importerConstants.py
# CENTER = VEC(0, 0, 0)
# 
# DIR_X  = VEC(1, 0, 0)
# 
# DIR_Y  = VEC(0, 1, 0)
# 
# DIR_Z  = VEC(0, 0, 1)
# 
# ENCODING_FS      = 'utf8'


# Path: Acis.py
import traceback, Part, Draft, os, FreeCAD, re
from importerUtils              import *
from FreeCAD                    import Vector as VEC, Rotation as ROT, Placement as PLC, Matrix as MAT, Base
from math                       import pi, fabs, degrees, asin, sin, cos, tan, atan2, ceil, e, cosh, sinh, tanh, acos, acosh, asin, asinh, atan, atanh, log, sqrt, exp, log10
from importerConstants          import MIN_0, MIN_PI, MIN_PI2, MIN_INF, MAX_2PI, MAX_PI, MAX_PI2, MAX_INF, MAX_LEN
from importerConstants          import CENTER, DIR_X, DIR_Y, DIR_Z, ENCODING_FS

			bc1, i = readBS3Curve(chunks, i)
			bc2, i = readBS2Curve(chunks, i)  # nullbs
		return i
	def setSrfSrvVBlend(self, chunks, index, inventor):
		i = self.setVarBlend(chunks, index, inventor, 'srf_srf_v_bl_spl_sur')
		return i
	def setTaper(self, chunks, index, inventor, subtype = 'taper_spl_sur'):
		self.surface, i = readSurface(chunks, index)
		self.curve, i   = readCurve(chunks, i)
		self.pcurve, i  = readBS2Curve(chunks, i)
		f1, i = getFloat(chunks, i)
		i = self.setSurfaceShape(chunks, i, inventor, subtype)
		return i
	def setOrtho(self, chunks, index, inventor):
		i = self.setTaper(chunks, index, inventor, 'ortho_spl_sur')
		self.sense, i = getBoolean(chunks, i)
		return i
	def setEdgeTaper(self, chunks, index, inventor, subtype = 'edge_tpr_spl_sur'):
		i = self.setTaper(chunks, index, inventor, subtype)
		self.draft, i = getVector(chunks, i)
		return i
	def setShadowTaper(self, chunks, index, inventor):
		i = self.setEdgeTaper(chunks, index, inventor, 'shadow_tpr_spl_sur')
		self.sine, i   = getFloat(chunks, i)
		self.cosine, i = getFloat(chunks, i)
		return i
	def setRuledTaper(self, chunks, index, inventor):
		i = self.setEdgeTaper(chunks, index, inventor, 'ruled_tpr_spl_sur')
		self.sine, i   = getFloat(chunks, i)
		self.cosine, i = getFloat(chunks, i)

		self.fac, i    = getFloat(chunks, i)
