Fixes before merging Ship

This commit is contained in:
Yorik van Havre 2012-01-24 15:59:00 -02:00
parent f6dbb7a8b9
commit 05dd30861f
3 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#***************************************************************************
import FreeCAD,FreeCADGui,Draft,math
from draftlibs import fcvec
from FreeCAD import Vector
from PyQt4 import QtCore, QtGui

View File

@ -138,6 +138,7 @@ def splitMesh(obj,mark=True):
def meshToShape(obj,mark=True):
'''meshToShape(object,[mark]): turns a mesh into a shape, joining coplanar facets. If
mark is True (default), non-solid objects will be marked in red'''
name = obj.Name
import Part,MeshPart
from draftlibs import fcgeo

View File

@ -970,6 +970,7 @@ def draftify(objectslist,makeblock=False):
wire. If makeblock is True, multiple objects will be grouped in a block'''
from draftlibs import fcgeo
import Part
if not isinstance(objectslist,list):
objectslist = [objectslist]
newobjlist = []