Page MenuHome

Allow a custom domain for add_mesh_extra_objects/add_mesh_3d_function_surface.py
Needs ReviewPublic

Authored by Henry (Skippi) on Feb 16 2018, 6:26 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

some graphs like "log(x)" are unable to be graphed because they have an invalid domain less than 1. this is a problem when you try to graph them because the current settings do not allow for exclusion of the certain domain.
the diff i have included shows a fix for this by allowing the user to specify a custom domain (basically changing size_x, size_y to start_x, start_y, size_x, size_y)
thanks

Diff Detail

Event Timeline

fix context issues with the diff

Would it not be better for the user to have a switch to enable this new behaviour. Now the default behaviour is different and possible other addons, documentation and tutorials needs to be updated. Having a switch and a custom draw function will be much clearer for the end users.

So something like this?
(the XYZ surface already has this so i assumed this behavior is wanted, but you are probably right about the toggle switch)