USER FORUM

*(you are viewing a thread; or go back to
list of threads)*

**Constrain point on line segment**

*(by PetrST)*

Folks,

is there a way how to constrain a point to lay on a line segment and not to escape its boundaries? The built-in constrain "On line/ curve /plane" let the point to be anywhere on straight line projected through the segment, i.e. even beyond its extremes.

Thanks,

Petr

is there a way how to constrain a point to lay on a line segment and not to escape its boundaries? The built-in constrain "On line/ curve /plane" let the point to be anywhere on straight line projected through the segment, i.e. even beyond its extremes.

Thanks,

Petr

**(no subject)**

*(by app4soft)*

There two ways how to fix point on line segment for "not to escape its boundaries":

1. Constrain point as "Midpoint" (select line, select point & press "M" key)

2. Constrain "Point on Line" using "Distance" from line end-points.

1. Constrain point as "Midpoint" (select line, select point & press "M" key)

2. Constrain "Point on Line" using "Distance" from line end-points.

**(no subject)**

*(by Andrew)*

I think what you are trying to achieve can be accomplished by couple of construction lines. An orthogonal line at the mid point of the line you want to constrain the point to, and a line from the point you want to constrain to this line. Make this line half the length of the line you want to constrain the point to, and cannot go past the ends of that line.

The attached sketch shows on point of the triangle constrained like this.

I hope this helps.

The attached sketch shows on point of the triangle constrained like this.

I hope this helps.

**RE: Constrain point on line segment**

*(by PetrST)*

@app4soft

If understand correctly this would fix the point at specific position on the line (midpoint or at certain distance from the extremes). What I wanted is that point could be "anywhere" on the line between the endpoints. What would help is if I could put expression in the Distance constraint. The I could fix the point on the line and "less than" half of line lenght from midpoint.

@Andrew

Yes, this is what I was looking for. Thank you.

If understand correctly this would fix the point at specific position on the line (midpoint or at certain distance from the extremes). What I wanted is that point could be "anywhere" on the line between the endpoints. What would help is if I could put expression in the Distance constraint. The I could fix the point on the line and "less than" half of line lenght from midpoint.

@Andrew

Yes, this is what I was looking for. Thank you.

**(no subject)**

*(by EvilSpirit)*

You should look into branch https://github.com/Evil-Spirit/solvespace-master/commits/master where you can specify value range for constraints

**Post a reply to this comment:**