Sneak Peak - Extent Dimensions
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Sneak Peak - Extent Dimensions
This will be along shortly...
issue #3004
issue #3004
Re: Sneak Peak - Extent Dimensions
Wow, this looks great! Will extent dimensions be possible at other angles than horizontal and vertical, too (e.g., at 45° angle)? In any case, horizontal and vertical extent dimensions are probably the most important ones, and would imho be a great addition to TechDraw!
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Sneak Peak - Extent Dimensions
Just horizontal/vertical for now. They are cheap to compute (most of the calculations are already done for bounding box).aapo wrote: ↑Tue Oct 15, 2019 12:52 pm Wow, this looks great! Will extent dimensions be possible at other angles than horizontal and vertical, too (e.g., at 45° angle)? In any case, horizontal and vertical extent dimensions are probably the most important ones, and would imho be a great addition to TechDraw!
Diagonal extents will require processing every edge and building effectively a diagonal bounding box. Certainly doable if the demand is there, but it will always be slower than the horizontal/vertical ones.
Re: Sneak Peak - Extent Dimensions
Sounds good to me the way it is now, I probably won't personally need any other extrema than the horizontal and vertical options.
Is the algorithm edge-based or face-based? I mean, will it be possible to just select some edges, and the algorithm shall find their common extrema; or is it based on selecting a face (or the whole drawing), and finding the global extrema?
Is the algorithm edge-based or face-based? I mean, will it be possible to just select some edges, and the algorithm shall find their common extrema; or is it based on selecting a face (or the whole drawing), and finding the global extrema?
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Sneak Peak - Extent Dimensions
If you select Edges, you'll get the extent of the collection of edges. If you just select the View, you'll get the extent of all the edges in the View.
Re: Sneak Peak - Extent Dimensions
That sounds like a good plan to me. I think it's both intuitive, and makes it possible to do extent dimensions within smaller details of the whole part. There's one case I'd like to bring your attention to, regarding possible future enhancements, which is the situation where the dimension may be required between two local minima, or a local minimum and a local maximum (i.e., not two local maxima). I added the 15 mm dimension in the following made-up example with CosmeticVertex quadrants, but that is obviously not possible with all kind of shapes.wandererfan wrote: ↑Wed Oct 16, 2019 4:08 pm If you select Edges, you'll get the extent of the collection of edges. If you just select the View, you'll get the extent of all the edges in the View.
Re: Sneak Peak - Extent Dimensions
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Sneak Peak - Extent Dimensions
Hello!
Greetings
user
I just want to say, that your work is awsome. TD is now pretty fast.wandererfan wrote:
Greetings
user
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact: