Polyhedral-net Splines
Loading...
Searching...
No Matches
STEPWriter.hpp
1
/* Based on code by Jorg Peters */
2
3
#pragma once
4
5
#include <string>
6
#include <fstream>
7
#include <sstream>
8
#include <vector>
9
10
#include "PatchConsumer.hpp"
11
#include "../Patch/Patch.hpp"
12
13
class
STEPWriter :
public
PatchConsumer
{
14
public
:
15
STEPWriter(
const
std::string a_OutFile);
16
~STEPWriter();
17
void
start();
18
void
stop();
19
void
consume(
const
Patch
a_Patch);
20
private
:
21
FILE* m_OutFile;
22
int
m_CurrOffset;
23
std::vector<int> openShellLocs;
24
std::string m_FileName;
25
int
m_PatchNo;
26
void
writePatch(
const
Patch
a_Patch);
27
};
PatchConsumer
Definition
PatchConsumer.hpp:35
Patch
A class representing a Bézier patch.
Definition
Patch.hpp:20
© Jorg Peters
jorg.peters@gmail.com