wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
Data Structures | Namespaces | Functions
bgi_openlb_bridge.h File Reference
#include "bgi_dds.h"
#include <string>
#include <vector>
#include <glm/glm.hpp>
Include dependency graph for bgi_openlb_bridge.h:

Go to the source code of this file.

Data Structures

struct  bgi::OpenLbMaterialHit
 Result of classifying a single world-space point against an OpenLB-tagged DDS scene. More...
 

Namespaces

namespace  bgi
 

Functions

bool bgi::openlbClassifyPoint (const DdsScene &scene, const glm::vec3 &worldPoint, OpenLbMaterialHit &hit, int defaultFluidMaterial=1, int defaultSolidMaterial=2)
 Classify a single world-space point against all OpenLB-tagged render roots in a DDS scene and populate a hit record.
 
void bgi::openlbSampleMaterials2D (const DdsScene &scene, float minX, float minY, float z, int cols, int rows, float stepX, float stepY, std::vector< int > &materials, int defaultFluidMaterial=1, int defaultSolidMaterial=2)
 Sample a 2-D axis-aligned grid of world-space points and write per-cell material IDs into a std::vector<int>.