16 lines
358 B
Python
16 lines
358 B
Python
ModelIndex = modelName
|
|
data = modelParam
|
|
angle = 0
|
|
axis = [0,0,0]
|
|
for i in range(3):
|
|
if data[i] != 0:
|
|
angle = data[i]
|
|
axis[i] = 1
|
|
break
|
|
rotate = CAD.RotateFeature()
|
|
rotate.setRotateFeature(4)
|
|
rotate.appendBody(ModelIndex[0],0)
|
|
rotate.setBasicPoint(0,0,0)
|
|
rotate.setAxis(axis[0],axis[1],axis[2])
|
|
rotate.setAngle(angle)
|
|
rotate.rotate() |