Diederik en Rezi schrieb:
Hi Max,
Op Vr, 11 januari, 2008 20:04, schreef Maximilian Albert:
I just committed a change to SVN (rev. #17022) which allows the user to convert rectangles and 3D boxes to a collection of guidelines that are aligned along these objects' edges.
That's indeed a very cool feature! I could have used that today at work :-)
I have not checked it out yet though, but I wonder: are the guides aligned with the nodes or with the bounding box? Or is there a way to specify this? I ask this because there are essentially two ways of working: either aligning objects at their visual boundingbox, or at their geometrical bbox (or nodes or stroke center). This distinction is being used in the preferences for the selector tool, and also when snapping. So we need it here also IMO.
You are right. I also thought of making this distinction but haven't yet implemented it. At present, only the geometrical bounding box is taken into account, and the guides for rectangles and 3D boxes use the precise location of the nodes (disregarding stroke etc.).
I don't think that for 3D boxes anything else would make sense anyway. But for rectangles and other objects this would indeed be useful. How about adding the following option in the "Guides" tab of Document Preferences: "When converting objects to guides, use visual/geometric bounding box"?
However, right now I'm not sure how to deal with rotated/twisted rectangles that have stroke applied (since I can't use their visual bounding box as provided by sp_item_bbox_desktop, for example). Will think about that.
Now that I think of it, it may be useful to provide another option which lets the user choose whether rectangles/3D boxes should be treated differently when converting to guides. Would the Document Properties be the right place for this, too, or should this go in the tools' preference pages?
Max