~ubuntu-branches/ubuntu/utopic/freecad/utopic-proposed

« back to all changes in this revision

Viewing changes to src/Mod/JtReader/App/JtReader.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-07-22 20:15:18 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140722201518-szma903mba26tphe
Tags: 0.14.3702+dfsg-1
* [7fc727b] Imported Upstream version 0.14.3702
* [3edf0de] Refresh patches.
* [077b63a] Redirect unittest output into stdout. Fixes autopkgtests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (c) Juergen Riegel 2007    <juergen.riegel@web.de>          *
3
 
 *   LGPL                                                                  *
4
 
 ***************************************************************************/
5
 
 
6
 
 
7
 
#ifndef __JtReader_h__
8
 
#define __JtReader_h__
9
 
 
10
 
 
11
 
/** simple facet structure */
12
 
struct SimpleMeshFacet {
13
 
  float p1[3],p2[3],p3[3],n[3];
14
 
};
15
 
 
16
 
/** Reads a JT File an build up the internal data structure
17
 
  * imports all the meshes of all Parts, recursing the Assamblies.
18
 
  */
19
 
void readFile(const char* FileName, int iLods = 0);
20
 
 
21
 
/** Write the read Part to a file */
22
 
void writeAsciiSTL(const char* FileName);
23
 
 
24
 
/** start the iterator on the result */
25
 
const SimpleMeshFacet* iterStart(void);
26
 
 
27
 
/** get the faces or 0 at end */
28
 
const SimpleMeshFacet* iterGetNext(void);
29
 
 
30
 
/** size of the result */
31
 
unsigned int iterSize(void);
32
 
 
33
 
/** clears the internal structure */
34
 
void clearData(void);
35
 
 
36
 
#endif // __JtReader_h__
 
 
b'\\ No newline at end of file'