-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Bevel Tool Supporting Lines For Constrained Points #389
Comments
Just to be clear the resulting construction lines should be parallel to the original line thus supporting lines in any orientation. |
This behavior is linked to: The reason it happened is also because the distance constraint is set onto the line instead of its endpoints. So if the bevel tool would then add a coincident from the point to each line (and as TheMakerTales suggested maybe the two construction lines) it should be solved as well I think. |
Good catch, can you open a PR? |
If you also want the lines to be added, this seems to work well and I think it fully covers the initial request: # Remove original point if not referenced
if not is_entity_referenced(point, context):
context.scene.sketcher.entities.remove(point.slvs_index)
else:
ssc.add_coincident(point, seg1, sketch)
ssc.add_coincident(point, seg2, sketch)
# add reference construction lines
sse = context.scene.sketcher.entities
for i in range(0, 2):
if isinstance(self.connected[i], SlvsLine2D):
target = sse.add_line_2d(point, self.points[i], sketch)
target.construction = True
elif isinstance(self.connected[i], SlvsArc):
target = sse.add_arc(sketch.wp.nm, self.connected[i].ct, self.points[i], point, sketch)
target.construction = True
if target.angle > HALF_TURN:
target.invert_direction = True Would you prefer it this way or rather without the construction lines? |
Currently, when adding a bevel to a point that already has a dimensional constant it's behavior is this:
Let's add some supporting construction like creation for point that are beveled that are already constrained in some way like this:
I'm unsure if this should be "automatic" behavior, toggleable or modifier key initiated i.e. pressing shift while using the bevel tool
The text was updated successfully, but these errors were encountered: