Closed jlopezbi closed 8 years ago
now have derived classes CutEdge and FoldEdge that inherit the FlatEdge class. Now decide how to check type of flatEdge:
This is probably a place for duck typing or something. Not really sure yet. Also new understanding from poodr is that shared behavior should make use of a module, although that is a ruby module. Not sure if python module behaves similarly. So maybe module FlatEdge and then the classes CutEdge and NakedEdge inherit?
Well this is basically done. succesfuly created a abastract bas class FlatEdge and FoldEdge and CutEdge and NakedEdge inherit it. the issue of checking the type ill figure out later
there are various types of flatEdges: crease, cut, naked. cut edges sometimes have joinery. And they always have a pair.
perhaps these classes of edges could inherit stuff from flatEdge. flatEdge is more basic: it knows its verts, its faces, how to draw a line of itself.