diff options
author | deepa-chaudhari | 2015-12-09 20:02:11 +0530 |
---|---|---|
committer | deepa-chaudhari | 2015-12-09 20:02:11 +0530 |
commit | 1d1133feb0107d1f166439ff0857e98a97fa09c0 (patch) | |
tree | b457ad549daed97c481a5669f753895e532f2d6d /Connections/Shear/Finplate/ModelUtils.py | |
parent | 24380b7be6c7985dcff6dc1a65118db4d3442bdd (diff) | |
parent | ce03f7e92c619d1efc34b58a0e5e3017991712d6 (diff) | |
download | OsdagLive-1d1133feb0107d1f166439ff0857e98a97fa09c0.tar.gz OsdagLive-1d1133feb0107d1f166439ff0857e98a97fa09c0.tar.bz2 OsdagLive-1d1133feb0107d1f166439ff0857e98a97fa09c0.zip |
Merge pull request #1 from deepa-chaudhari/master
Svg 2d related changes
Diffstat (limited to 'Connections/Shear/Finplate/ModelUtils.py')
-rw-r--r-- | Connections/Shear/Finplate/ModelUtils.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Connections/Shear/Finplate/ModelUtils.py b/Connections/Shear/Finplate/ModelUtils.py index ae4e175..f2ec597 100644 --- a/Connections/Shear/Finplate/ModelUtils.py +++ b/Connections/Shear/Finplate/ModelUtils.py @@ -3,10 +3,8 @@ Created on 29-Nov-2014 @author: deepa ''' -from OCC.Display.SimpleGui import init_display -from OCC.BRepPrimAPI import BRepPrimAPI_MakeBox, BRepPrimAPI_MakeSphere,\ - BRepPrimAPI_MakePrism -from OCC.gp import gp_Pnt, gp_Dir, gp_Pln, gp_Vec +from OCC.BRepPrimAPI import BRepPrimAPI_MakePrism,BRepPrimAPI_MakeSphere +from OCC.gp import gp_Pnt, gp_Dir, gp_Vec from OCC.BRepBuilderAPI import BRepBuilderAPI_MakeFace from OCC.BRepBuilderAPI import (BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeVertex, @@ -15,7 +13,6 @@ from OCC.BRepFill import BRepFill_Filling from OCC.GeomAbs import GeomAbs_C0 from OCC.GeomAPI import GeomAPI_PointsToBSpline from OCC.TColgp import TColgp_Array1OfPnt -from OCC._Quantity import Quantity_NOC_BLACK def make_edge(*args): @@ -89,6 +86,6 @@ def makeEdgesFromPoints(points): return edges def makePrismFromFace(aFace, eDir): + return BRepPrimAPI_MakePrism(aFace, gp_Vec(gp_Pnt(0., 0., 0.),gp_Pnt(eDir[0], eDir[1], eDir[2]))).Shape() - #return BRepPrimAPI_MakePrism(aFace, gpDir, False).Shape() |