GeniusLoci - Creating 3D Views - Bounding Box Size

Hi all,

I’ve had a look around but not been able to locate a answer to this with good old Google and Forum Searches.

Basically I am using Genius Loci’s “3DView by BoundingBox” to generate 3D Views using the Room’s geometry. I have this working so my question is this :

Is there a way for me to add some form of offset to the bounding box so it goes beyond the size of the room?

Thanks!

hi, it seems to me that Mr. ChuongMEP with his openMEP package presented nodes that do this

cordially
christian.stan

If you want a method which doesnt require any external packages (except for colouring my geometry) the you could do this:

Extract the corners from the origin bounding box (red), create a vector using them, offset by your desired amount then recreate the new bounding box (green)

2 Likes

hello, you inspired me (in the same vein)
scaleBB

def scaleBB(_bb,_coef)
{
//Line on BB initial
L=Line.ByStartPointEndPoint(_bb.MinPoint,
_bb.MaxPoint);
//Lenght Line
long=Autodesk.Curve.Length(L);
//Extend lenght
ext=(_coef-1)*long;
L_step=Autodesk.Curve.ExtendEnd(L,ext);
L_end=Autodesk.Curve.ExtendStart(L_step,ext);
result=_coef>0.5?BoundingBox.ByCorners(Autodesk.Curve.StartPoint(L_end),
Autodesk.Curve.EndPoint(L_end)):"Coef too small";
return result;
};

cordially
christian.stan

3 Likes

hi @christian.stan & @haganjake2,

Changed accounts as I have changed jobs (my login in automated to my new Autodesk ID… so will marked resolved when I get home this evening)

Thank you both for your responses! I have got some time for more Dynamo at work and these worked great.

I think the part I was not understanding was the part of using the room bounding geometry along with its reversed geometry!

Now works perfectly, many thanks! :slight_smile:

2 Likes

hi @haganjake2 & @christian.stan ,

I have run more tests on this script and this script only works where there is only one set of Room geometry data, which makes sense looking back at it.

I did manage to resolve this by creating the nodes within the blue group, into a new custom node. That then allowed the data to flow through as a list and retain its order and structure. (just in case someone else tries to recreate this!)

Thanks again

1 Like