cstatz / blazert

Double precision raytracer for scientific or engineering applications.
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

operator<< for geometry primitives in JSON format for debug purposes #54

Closed orgarten closed 4 years ago

orgarten commented 4 years ago

Status

READY

Description

I added operator<< to the following primitives and collections:

The output format is JSON which is also used within the node.

Type of Change

How to test the PR

To test the output add something like

std::cout << cylinders << "\n"; 

to the test_cylinders test cases.

Checklist

orgarten commented 4 years ago

Added debug output to BlazertScene, Ray and RayHit

next: add them to the corresponding EmbreeObjects

orgarten commented 4 years ago

This is ready to be merged now. I have added output operators for the embree primitives as well.