attr aabbYMax=0 ProxyPointLight --> /* Insert a pointlight representation - using scatter to a only place one asset on the surfaces that are at the top */ scatter(surface,1,gaussian, top, 0) { s(0,0,0) i("assets/proxies/pointLight.obj") color("#ff0000") PointLight. // now this just needs to be reported } ProxyTopDetail --> /* ProxyTopDetail is a shape that produces a representation of a roof top detail model such as a tv/radio mast geometry on the top of a building */ s(0,scaleValue*assetInfo(bldTopDtl,sy),0) i(bldTopDtl) TopDetail. // work out the top value of the bounding box, // could be used later if needed for culling.. if needed // i have a random scale value, within a tolerance for these kind of details set(aabbYMax, (scope.elevation + (scaleValue*assetInfo(bldTopDtl, sy)))) print ("aabbYMax: " + aabbYMax) //split out only object.top facing faces comp(f) { //use separated faces as one shape object.top= color("#ff0000") alignScopeToAxes(y) ProxyPointLight }
case convert(y,scope,object,pos,0,0,0) < 3.5:
PossibleLightPositionShape --> case PythonHelpValue == 0 : report (shapes height in world.) print ("run Python now") NIL case (heightInWorld < PythonHelpValue +delta0.01) && (heightInWorld > PythonHelpValue -delta0.01): PutLight else : NIL
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.