SOLVED!
ProfileVectorImage polygon operation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-11
09:00 AM
- last edited on
2022-10-05
01:37 PM
by
Daniel Kassai
2018-10-11
09:00 AM
Is there an intersection (and other polygon) operation for ProfileVectorImage? Currently I am using:
pvi is the source ProfileVectorImage;
vi is the output VectorImage;
cutPoly is the IrregularPolygon2D that counts as a cutter;
But it sometimes crashes.
try { pvi.GetVectorImage().Strip(cutPoly, &vi); } catch (const GS::Exception& e) { WriteReport("%s", e.GetMessage().ToCStr().Get()); }; vi.CheckAndRepair();
But it sometimes crashes.
~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Solved! Go to Solution.
Labels:
- Labels:
-
Add-On (C++)
1 ACCEPTED SOLUTION
Accepted Solutions
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-11 06:12 PM
2018-10-11
06:12 PM
ReignBough wrote:Have you tried to copy the source?
Is there an intersection (and other polygon) operation for ProfileVectorImage? Currently I am using:
try { pvi.GetVectorImage().Strip(cutPoly, &vi); } catch (const GS::Exception& e) { WriteReport("%s", e.GetMessage().ToCStr().Get()); }; vi.CheckAndRepair();pviis the source ProfileVectorImage;
viis the output VectorImage;
cutPolyis the IrregularPolygon2D that counts as a cutter;
But it sometimes crashes.
VectorImage vecIm = pvi.GetVectorImage (); vecIm.Strip (cutPoly, &vi);If it still crashes, could you please write it to an XML file, and send me that?
Thanks, Akos
3 REPLIES 3
Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-11 06:12 PM
2018-10-11
06:12 PM
ReignBough wrote:Have you tried to copy the source?
Is there an intersection (and other polygon) operation for ProfileVectorImage? Currently I am using:
try { pvi.GetVectorImage().Strip(cutPoly, &vi); } catch (const GS::Exception& e) { WriteReport("%s", e.GetMessage().ToCStr().Get()); }; vi.CheckAndRepair();pviis the source ProfileVectorImage;
viis the output VectorImage;
cutPolyis the IrregularPolygon2D that counts as a cutter;
But it sometimes crashes.
VectorImage vecIm = pvi.GetVectorImage (); vecIm.Strip (cutPoly, &vi);If it still crashes, could you please write it to an XML file, and send me that?
Thanks, Akos
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-12 07:02 AM
2018-10-12
07:02 AM
That was the original code but it also crashes. Then I made some changes (not only on that part but also on some other part of the code) and still crashes.
Now, I changed that part back to what you suggest. Now it is working.
Thanks.
Now, I changed that part back to what you suggest. Now it is working.
Thanks.
~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-23 11:21 AM
2018-10-23
11:21 AM
BTW, is there a "Strip" function for ProfileVectorImage ?
~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS