Fixes before merging Ship
This commit is contained in:
parent
f6dbb7a8b9
commit
05dd30861f
|
@ -22,6 +22,7 @@
|
|||
#***************************************************************************
|
||||
|
||||
import FreeCAD,FreeCADGui,Draft,math
|
||||
|
||||
from draftlibs import fcvec
|
||||
from FreeCAD import Vector
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user