jlopezbi / rhinoUnfolder

unwrap meshes in rhino!
GNU General Public License v3.0
8 stars 2 forks source link

Flat Edge split into multiple classes! #30

Closed jlopezbi closed 8 years ago

jlopezbi commented 8 years ago

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.

jlopezbi commented 8 years ago

now have derived classes CutEdge and FoldEdge that inherit the FlatEdge class. Now decide how to check type of flatEdge:

jlopezbi commented 8 years ago

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?

jlopezbi commented 8 years ago

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