After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 95993 - Shape, Mathematica/Set Operations
Shape, Mathematica/Set Operations
Status: RESOLVED OBSOLETE
Product: dia
Classification: Other
Component: general
0.90
Other other
: Normal enhancement
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2002-10-16 21:52 UTC by Alan Horkan
Modified: 2019-03-20 11:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alan Horkan 2002-10-16 21:52:46 UTC
Filling this bug seeing as someone asked about this recently.  
need to dig up the relevant posts to the mailing list, i think it was
mentioned in or around the same time as the "CAD 2D drawing" thread

Documentation of these features based on observation of Visio 2000, dont
blame me if i get the set theory wrong ...

Shape, Operations 
Union, Combine, Fragment, Intersect, Subtract.  
(I figure the logic is easy for polygons, nasty for curves, ill try and
write some pseudocode and give some more thought to curves)  

Union
take two shapes, convert them to a PATH consisting of all the external/
points on the circumference.  

  +---+
+-|-+ |
| +-|-+
+---+

becomes 
  +---+
+-+   |
|   +-+
+---+


Combine
  +---+
+-|-+ |
| +-|-+
+---+
becomes the same only the overlapping central bit is not longer filled.  (I
could work out what is actually logically happening here but i wont.)  

  +---+
+-|-+ |
| +-|-+
+---+

becomes
three shapes instead of two
  +---+
+-+-+ |
| +-+-+
+---+

you have to move them apart to see it clearly
        +---+
        +-+ |
     +-+  +-+
+-+  +-+ 
| +-+ 
+---+

Intersect leaves you with only the overlapping bit, subtract removes a
chunk, leaving you with only one shape missing the overlapping bit.  

Join and Trim are similar only you do not close and fill the paths

[disclaimer: If you dont use a fixed width font my diagrams wont make any
sense]
Comment 1 Hans Breuer 2004-01-10 20:56:57 UTC
There is still nothing like that in Dia and I doubt it'll happen
anytime soon. It would require the creation or deletion of Dia objects
during processing - but I think all this could even be done with the
Python bindings. Anyway to move it out of my way while fixing real
bugs - setting to enhancement ... 
Comment 2 GNOME Infrastructure Team 2019-03-20 11:02:26 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/65.