|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Is there a max lenght for a SVG cutout string? » » » » Post: Is there a max lenght for a SVG cutout string? |
Print at Dec 18, 2025, 2:16:01 AM |
| Posted by Keet at May 2, 2025, 9:48:59 PM |
|
Is there a max lenght for a SVG cutout string? After this post I got an itch to solve the problem of 'difficult' cutouts. I created an algorithm to generate a SVG cutout string from a room object. A room is perfect to create a shape with random curves. Of course the number of points such a room has can quickly run into the hundreds. Limited to 4 decimals every point adds 15 characters to a SVG string. I tested it with 386 points resulting in a string of 5699 characters. There was no problem setting such a cutout for the exported room object and the 'staircase shape' created a perfect hole in the floor. But where is the limit? Is there a limit? Where does processing become a problem? My tests had no problems and worked very fast. But what happens with a million points? If there is a limit caused by some process in Sweet Home 3D I would like to know it so I can add a check for a maximum number of points. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT Dec 18, 2025, 2:16:01 AM |