MeshLib
 
Loading...
Searching...
No Matches
MRSolarRadiation.h File Reference
#include "MRMeshFwd.h"
#include "MRVector3.h"

Go to the source code of this file.

Classes

struct  MR::SkyPatch
 this class represents a portion of the sky, and its radiation More...
 

Namespaces

namespace  MR
 

Functions

MRMESH_API std::vector< Vector3fMR::sampleHalfSphere ()
 returns quasi-uniform 145 samples on unit half-sphere z>0
 
MRMESH_API VertScalars MR::computeSkyViewFactor (const Mesh &terrain, const VertCoords &samples, const VertBitSet &validSamples, const std::vector< SkyPatch > &skyPatches, BitSet *outSkyRays=nullptr, std::vector< MeshIntersectionResult > *outIntersections=nullptr)
 
MRMESH_API BitSet MR::findSkyRays (const Mesh &terrain, const VertCoords &samples, const VertBitSet &validSamples, const std::vector< SkyPatch > &skyPatches, std::vector< MeshIntersectionResult > *outIntersections=nullptr)