Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use custom leaf object #51

Open
friggog opened this issue Jul 24, 2021 · 0 comments
Open

Ability to use custom leaf object #51

friggog opened this issue Jul 24, 2021 · 0 comments

Comments

@friggog
Copy link
Owner

friggog commented Jul 24, 2021

Also from #48

Currently we get the shape here:

tree-gen/parametric/gen.py

Lines 293 to 298 in 0b0bc62

# go through global leaf array populated in branch making phase and add polygons to mesh
base_leaf_shape = Leaf.get_shape(self.param.leaf_shape, self.tree_scale / self.param.g_scale,
self.param.leaf_scale, self.param.leaf_scale_x)
base_blossom_shape = Leaf.get_shape(-self.param.blossom_shape, self.tree_scale / self.param.g_scale,
self.param.blossom_scale, 1)

We should be able to alter the UI to let the user select a mesh object from the scene then get the mesh vertices to use as the base shape instead of getting the mesh from the cached list as currently happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant