-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix crossects dimensions #199
Conversation
w=obj.dim_w; | ||
h=obj.dim_h; | ||
t1=obj.dim_t1; | ||
t2=obj.dim_t2; | ||
t3=obj.dim_t3; | ||
t4=obj.dim_t4; | ||
t4=obj.dim_t4; | ||
axis = DimMillimeter([feval(class(w), 0),feval(class(w), 0)]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be using DimMillimeter
explicitly here instead of just feval
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Bharat-Ramadas I think feval
makes more sense than DimMillimeter
.....For example, the user may not always be specifying the dimension as DimMillimeter
and may choose DimInch
/ DimMeter
/ any other ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the lack of clarity, what I meant is why can't axis = DimMillimeter([feval(class(w), 0),feval(class(w), 0)])
be just axis = [feval(class(w), 0),feval(class(w), 0)]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Bharat-Ramadas Gotcha! I have fixed this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better yet, do this: axis = feval(class(w), [0 0])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just made the update.
This PR fixes the following cross-sects to properly use dimensions:
breadloaf
,hollowCylinder
hollowRectangle