Hi! I need help to optimize data processing of this script since it slows down terribly.
OPTIMIZE LARGE DATA REVISION.gh (42.8 KB)
Hi! I need help to optimize data processing of this script since it slows down terribly.
OPTIMIZE LARGE DATA REVISION.gh (42.8 KB)
If you share a file, someone could actually look at it and see if there’s anything wrong or if there’s a better solution…
Apologies, I already uploaded the GH file
no data inside (internalize it )
Apologies, I internalized the data here
OPTIMIZE LARGE DATA REVISION.gh (4.1 MB)
when i tried adding the graft tree component the split with breps is not splitting the curves
As shown by @Rajeev2, grafting the Brep input to the Split With Breps component is the solution to your optimization question.
You using a python script to find the lowest point of the brep and then extruding it downwards. The only place the brep and line intersect is at the start point of the line (no split).
If you instead extrude the point upwards, the curve will be split by the brep.
OPTIMIZE LARGE DATA REVISION_re.gh (4.1 MB)
-Kevin
if the lines will be extruded upwards, I can’t find the vertical clearance between floor to floor which is the goal of this script
@Aidea, I hadn’t looked at your upstream code before.
What it this block of code supposed to be doing
The 125 breps on branch {0} are duplicated 3 times, the 167 breps on Branch {1} are duplicated 5 times, and the 165 breps on branch {2} are duplicated 3 times. Duplicating 457 breps into 1705 breps is definitely going to make your script run slower.
-Kevin
that is to select a range of branches.
I removed that group of codes and it manage to optimize the processing time from 3 mins to 9 seconds
Here’s an alternate faster method.
Breps are already divided into floors. Uses Isovist Ray component to measure clearances between floors.
OPTIMIZE LARGE DATA REVISION_re3.gh (4.0 MB)
-Kevin
I was wondering about this - meshing speeds it up significantly, with only a couple of points that change location for obvious reasons:
But, if negligeable then
Hi! Can you please send the gh file? Thanks! I am figuring out how to avoid that kind of errors that you encircled
There are points that passes within the BREP which causes inaccuracy to the dimensioning
Please show what you’re referring to.
-Kevin
it work for a three storey floors, but it doen’t work with multi floors
I didn’t really do anything other than mesh the breps prior to the isovist operation.
Here it is:
OPTIMIZE LARGE DATA REVISION_re3.gh (3.9 MB)