Polyhedral-net Splines
Loading...
Searching...
No Matches
BVWriter.hpp
1/* copyright(c)Jorg Peters [jorg.peters@gmail.com] */
2
3#pragma once
4
5#include <string>
6#include <mutex>
7#include <fstream>
8#include <queue>
9
10#include "PatchConsumer.hpp"
11#include "../Patch/Patch.hpp"
12
13class BVWriter : public PatchConsumer
14{
15public:
16 BVWriter(const std::string a_OutFile);
17 ~BVWriter();
18 void start();
19 void stop();
20 void consume(const Patch a_Patch);
21private:
22 std::ofstream m_OutFile;
23 void writePatch(const Patch a_Patch);
24};
Definition PatchConsumer.hpp:35
A class representing a Bézier patch.
Definition Patch.hpp:20