Closed jmwright closed 9 years ago
No good reason comes to mind. On Dec 1, 2014 4:37 PM, "Jeremy Wright" notifications@github.com wrote:
The CQ object has translate() and rotateAboutCenter() functions, but not a rotate() function. That's only on cad.Shape.
http://parametricparts.com/docs/search.html?q=rotate
Why is that?
— Reply to this email directly or view it on GitHub https://github.com/dcowden/cadquery/issues/51.
I'd like to convert this to an enhancement request then. It's kind of a picky semantic thing, but I like consistency.
fair enough!
On Mon, Dec 1, 2014 at 9:50 PM, Jeremy Wright notifications@github.com wrote:
I'd like to convert this to an enhancement request then. It's kind of a picky semantic thing, but I like consistency.
— Reply to this email directly or view it on GitHub https://github.com/dcowden/cadquery/issues/51#issuecomment-65176040.
Looking at the Shape.rotate signature...
def rotate(self, startVector, endVector, angleDegrees):
If we changed the signature to something like...
def rotate(self, startVector=(0, 0, 0), endVector=(0, 0, 1), angleDegrees=90):
...it would chose sane defaults for the user.
Thoughts?
I'm wondering if we can replace rotateAboutCenter by setting the right defaults if the user doesn't pass anything in for the start and end vectors. We'd have to check for None
to make it work I think, which isn't the cleanest way to handle things, but I think we could make it work.
yeah that seems workable.
On Wed, Dec 10, 2014 at 10:53 AM, Jeremy Wright notifications@github.com wrote:
I'm wondering if we can replace rotateAboutCenter http://parametricparts.com/docs/classreference.html?highlight=rotate#cadfile.cadutils.cadquery.CQ.rotateAboutCenter by setting the right defaults if the user doesn't pass anything in for the start and end vectors. We'd have to check for None to make it work I think, which isn't the cleanest way to handle things, but I think we could make it work.
— Reply to this email directly or view it on GitHub https://github.com/dcowden/cadquery/issues/51#issuecomment-66472692.
The reason for this being marked as wontfix is outlined in issue #34
I decided to stop waffling and just add this. It's in commit 65381225d0b77084d20dece2821f336e446b447c
okie doke
On Fri, Dec 19, 2014 at 9:40 AM, Jeremy Wright notifications@github.com wrote:
I decided to stop waffling and just add this. It's in commit 6538122 https://github.com/dcowden/cadquery/commit/65381225d0b77084d20dece2821f336e446b447c
— Reply to this email directly or view it on GitHub https://github.com/dcowden/cadquery/issues/51#issuecomment-67645637.
The CQ object has translate() and rotateAboutCenter() functions, but not a rotate() function. That's only on cad.Shape.
http://parametricparts.com/docs/search.html?q=rotate
Why is that?