Infer body/component/face orientation based on applied appearance/texture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, as part of my class I'm trying to create a python script to build a simple cut list for sheet based projects. The pieces to be cut out are approximated with rectangles and in almost all the cases they're indeed rectangles. In the cut list, I basically need to put length, width, orientation (i.e. if the texture direction is along the short or long side of the piece).
Each piece is modeled as a component with single body, where y axis is height, x is length and z is width. Calculating these dimensions is easy using OrientedBoundingBox3D. However I'm absolutely lost how to infer orientation from the applied appearance. More precisely, the sheet from which the pieces should be cut off, have a certain direction/orientation of the texture pattern. To model this, I've created a bunch of appearances to match the real sheets (i.e. using images). Now when I apply the given appearance to the modeled rectangular piece, I need to somehow infer the direction of this piece on the real sheet, based on the direction/orientation of the applied texture/appearance.
Any idea how to do this using python?
Thanks