-
-
Notifications
You must be signed in to change notification settings - Fork 416
Expand file tree
/
Copy pathindex.d.ts
More file actions
executable file
·93 lines (81 loc) · 2.14 KB
/
Copy pathindex.d.ts
File metadata and controls
executable file
·93 lines (81 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { mat4 } from 'gl-matrix';
import vtkPolyData from '../../../Common/DataModel/PolyData';
import { vtkAlgorithm, vtkObject } from '../../../interfaces';
export enum FormatTypes {
ASCII,
BINARY,
}
/**
*
*/
export interface ISTLWriterInitialValues {}
type vtkSTLWriterBase = vtkObject & vtkAlgorithm;
export interface vtkSTLWriter extends vtkSTLWriterBase {
/**
*
*/
getFormat(): FormatTypes;
/**
*
*/
getTransform(): mat4;
/**
*
* @param inData
* @param outData
*/
requestData(inData: any, outData: any): void;
/**
*
* @param {FormatTypes} format
*/
setFormat(format: FormatTypes): boolean;
/**
*
* @param {mat4} transform Tranformation matrix.
*/
setTransform(transform: mat4): boolean;
}
/**
* Method used to decorate a given object (publicAPI+model) with vtkSTLWriter characteristics.
*
* @param publicAPI object on which methods will be bounds (public)
* @param model object on which data structure will be bounds (protected)
* @param {ISTLWriterInitialValues} [initialValues] (default: {})
*/
export function extend(
publicAPI: object,
model: object,
initialValues?: ISTLWriterInitialValues
): void;
/**
* Method used to create a new instance of vtkSTLWriter
* @param {ISTLWriterInitialValues} [initialValues] for pre-setting some of its content
*/
export function newInstance(
initialValues?: ISTLWriterInitialValues
): vtkSTLWriter;
/**
*
* @param {vktPolyData} polyData
* @param {FormatTypes} [format]
* @param {mat4} [transform]
*/
export function writeSTL(
polyData: vtkPolyData,
format?: FormatTypes,
transform?: mat4
): vtkPolyData;
/**
* vtkSTLWriter writes stereo lithography (.stl) files in either ASCII or binary
* form. Stereo lithography files contain only triangles. Since VTK 8.1, this
* writer converts non-triangle polygons into triangles, so there is no longer a
* need to use vtkTriangleFilter prior to using this writer if the input
* contains polygons with more than three vertices.
*/
export declare const vtkSTLWriter: {
newInstance: typeof newInstance;
extend: typeof extend;
writeSTL: typeof writeSTL;
};
export default vtkSTLWriter;