faces.append(f4)
shell = geompy.MakeSewing(faces,1.e-6)
shells.append(shell)
-faces = geompy.SubShapeAllSorted(shell, geompy.ShapeType["FACE"])
+faces = geompy.SubShapeAllSortedCentres(shell, geompy.ShapeType["FACE"])
subbases.append(faces[0])
# 2 section
faces.append(f4)
shell = geompy.MakeSewing(faces,1.e-6)
shells.append(shell)
-faces = geompy.SubShapeAllSorted(shell, geompy.ShapeType["FACE"])
+faces = geompy.SubShapeAllSortedCentres(shell, geompy.ShapeType["FACE"])
subbases.append(faces[0])
# 3 section
faces.append(f4)
shell = geompy.MakeSewing(faces,1.e-6)
shells.append(shell)
-faces = geompy.SubShapeAllSorted(shell, geompy.ShapeType["FACE"])
+faces = geompy.SubShapeAllSortedCentres(shell, geompy.ShapeType["FACE"])
subbases.append(faces[2])
# 4 section
ff = geompy.MakePlane(vp,vec,40)
fs.append(ff)
aPartition = geompy.MakePartition(shellsph,fs)
-fs = geompy.SubShapeAllSorted(aPartition, geompy.ShapeType["FACE"])
+fs = geompy.SubShapeAllSortedCentres(aPartition, geompy.ShapeType["FACE"])
faces.append(fs[0])
faces.append(fs[1])
faces.append(fs[3])
shell = geompy.MakeSewing(faces,1.e-6)
shells.append(shell)
-faces = geompy.SubShapeAllSorted(shell, geompy.ShapeType["FACE"])
+faces = geompy.SubShapeAllSortedCentres(shell, geompy.ShapeType["FACE"])
#===========================================================
# 1 section
shell = MakeComplexSect(vs[0], geompy.MakeVectorDXDYDZ(1,0,0), 60, 40, 16)
shells.append(shell)
-vs1 = geompy.SubShapeAllSorted(shell,geompy.ShapeType["VERTEX"])
+vs1 = geompy.SubShapeAllSortedCentres(shell,geompy.ShapeType["VERTEX"])
locs.append(vs1[17])
# 2 section
shell = MakeComplexSect(vs[1], geompy.MakeVectorDXDYDZ(1,0,0), 80, 30, 16)
shells.append(shell)
-vs2 = geompy.SubShapeAllSorted(shell,geompy.ShapeType["VERTEX"])
+vs2 = geompy.SubShapeAllSortedCentres(shell,geompy.ShapeType["VERTEX"])
locs.append(vs2[17])
# 3 section
shell = MakeComplexSect(vs[2], geompy.MakeVectorDXDYDZ(1,0,0), 60, 40, 16)
shells.append(shell)
-vs3 = geompy.SubShapeAllSorted(shell,geompy.ShapeType["VERTEX"])
+vs3 = geompy.SubShapeAllSortedCentres(shell,geompy.ShapeType["VERTEX"])
locs.append(vs3[17])
# 4 section
shell = MakeComplexSect(vs[3], geompy.MakeVectorDXDYDZ(0,1,0), 40, 35, 16)
shells.append(shell)
-vs4 = geompy.SubShapeAllSorted(shell,geompy.ShapeType["VERTEX"])
+vs4 = geompy.SubShapeAllSortedCentres(shell,geompy.ShapeType["VERTEX"])
locs.append(vs4[17])
spring = MakeSpring(50, 100, 2*pi, 1, 5, pi/2)
\endcode
+<br><h2>Creation of Tangent Plane On Face</h2>
+\code
+import salome
+import geompy
+
+ # Create Vertexes for curve
+ Vertex_1 = geompy.MakeVertex(0, 0, 0)
+ Vertex_2 = geompy.MakeVertex(0, 90, 30)
+ Vertex_3 = geompy.MakeVertex(100, 90, 0)
+ Vertex_4 = geompy.MakeVertex(-100, 90, 0)
+ # Create curve
+ Curve_1 = geompy.MakeInterpol([Vertex_4, Vertex_2, Vertex_3, Vertex_1])
+ # Create Face by Extrusion of the Curve
+ Extrusion_1 = geompy.MakePrismDXDYDZ(Curve_1, 0, 30, -60)
+ # Make Tangent on this Extrusion (Face)
+ Tangent_1 = geompy.MakeTangentPlaneOnFace(Extrusion_1, 0.7, 0.5, 150)
+ # Publish in the study
+ geompy.addToStudy( Vertex_1, "Vertex_1" )
+ geompy.addToStudy( Vertex_2, "Vertex_2" )
+ geompy.addToStudy( Vertex_3, "Vertex_3" )
+ geompy.addToStudy( Vertex_4, "Vertex_4" )
+ geompy.addToStudy( Curve_1, "Curve_1" )
+ geompy.addToStudy( Extrusion_1, "Extrusion_1" )
+ geompy.addToStudy( Tangent_1, "Tangent_1" )
+\endcode
+
+
*/