Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/s/k/skdb-HEAD/import_tools/surf.py   skdb(Download)
#let's not reinvent the wheel
from skdb import Point, Shape, Face, Wire
#stuff that actually matters
    def __init__(self):
        self.bottom_left, self.bottom_right, self.top_left, self.top_right = Point(0,0,0), Point(0,0,0), Point(0,0,0), Point(0,0,0)
        self.points = [] #points that we want to approximate
        self.shape = Shape()
        self.polygons = [BRepBuilderAPI_MakePolygon()]
def shape_vertices(shape):
    '''OO way of figuring out shape vertices'''
    shape = Shape(shape)
    return shape.points
    #wires, points = [], []