You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an enhancement for the view analysis component you should consider adding a view cone option for the Ladybug_ViewAnalysis Component when point(s) are set up as targets.
I've added the following code to the Ladybug_Ladybug Component at the parallel_viewCalculator method
viewRange=math.pi/3#the cone of view to contstrain the calculation_withinifcheck!=0:
ifvecAngle<viewRange: #check if the viewVec is withi the viewing coneview[i] +=ptImportance[ptCount] #if yes add the value to the view resultelse:
view[i] +=0#if not add zero
It seems to work however I'm sure you will be able to integrate it better.
Ta,
M
The text was updated successfully, but these errors were encountered:
This is a good idea and we should leave this issue open here until it is integrated. I see where you would insert the proposed code into the parallel_viewCalculator function. However, this is only using a single parameter of the view cone and there would need to be a bit more code to have all 4 parameters of the view cone be taken into account. Specifically, you would need a function like this in the view analysis component: https://github.com/mostaphaRoudsari/ladybug/blob/master/src/Ladybug_View%20Analysis.py#L218-L254
If you build a function like this in and send a pull request to our github here, I will merge it into the code base. Otherwise, I'll try to get around to implementing this eventually.
Yes I believe it makes perfect sense to confine the analysis within a viewing cone.
Will try to look into this a little bit more when I find some time. If I end up writing something solid I will send a pull request,
Hi @mostaphaRoudsari,
As an enhancement for the view analysis component you should consider adding a view cone option for the Ladybug_ViewAnalysis Component when point(s) are set up as targets.
I've added the following code to the Ladybug_Ladybug Component at the parallel_viewCalculator method
It seems to work however I'm sure you will be able to integrate it better.
Ta,
M
The text was updated successfully, but these errors were encountered: