Polyhedral-net Splines
Loading...
Searching...
No Matches
IGSWriter.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 IGSWriter : public PatchConsumer
14{
15public:
16 IGSWriter(const std::string a_OutFile);
17 ~IGSWriter();
18 void start();
19 void stop();
20 void consume(const Patch a_Patch);
21private:
22 std::vector<Patch> m_Patches;
23 FILE* m_OutFile;
24 int m_NumOfFaces = 0;
25 int knots(int dg1, int bbase, int ffctr, FILE* fp, int per_line);
26 void writePatch(const Patch a_Patch);
27};
Definition PatchConsumer.hpp:35
A class representing a Bézier patch.
Definition Patch.hpp:20