forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataExchange.pyi
More file actions
67 lines (64 loc) · 2.15 KB
/
DataExchange.pyi
File metadata and controls
67 lines (64 loc) · 2.15 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
from typing import Any, Dict, List, Tuple, Union
from OCC.Core.Bnd import Bnd_Box2d
from OCC.Core.gp import gp_Dir, gp_Pnt
from OCC.Core.Quantity import Quantity_Color
from OCC.Core.TopoDS import TopoDS_Edge, TopoDS_Shape
HAVE_SVGWRITE: bool
def check_svgwrite_installed() -> None: ...
def read_step_file(
filename: str, as_compound: bool = True, verbosity: bool = False
) -> Union[TopoDS_Shape, List[TopoDS_Shape]]: ...
def write_step_file(
shape: TopoDS_Shape, filename: str, application_protocol: str = "AP203"
) -> None: ...
def read_step_file_with_names_colors(
filename: str,
) -> Dict[TopoDS_Shape, List[Union[str, Quantity_Color]]]: ...
def write_stl_file(
shape: TopoDS_Shape,
filename: str,
mode: str = "ascii",
linear_deflection: float = 0.9,
angular_deflection: float = 0.5,
) -> None: ...
def read_stl_file(
filename: str, sew_shape: bool = False, make_solid: bool = False
) -> TopoDS_Shape: ...
def read_iges_file(
filename: str,
return_as_shapes: bool = False,
verbosity: bool = False,
visible_only: bool = False,
) -> List[TopoDS_Shape]: ...
def write_iges_file(a_shape: TopoDS_Shape, filename: str) -> None: ...
def edge_to_svg_polyline(
topods_edge: TopoDS_Edge, tol: float = 0.1, unit: str = "mm"
) -> Tuple[Any, Bnd_Box2d]: ...
def export_shape_to_svg(
shape: TopoDS_Shape,
filename: str = None,
width: int = 800,
height: int = 600,
margin_left: int = 10,
margin_top: int = 30,
export_hidden_edges: bool = True,
location: gp_Pnt = ...,
direction: gp_Dir = ...,
color: str = "black",
line_width: str = "1px",
unit: str = "mm",
) -> Union[bool, str]: ...
def write_ply_file(a_shape: TopoDS_Shape, ply_filename: str) -> None: ...
def write_obj_file(a_shape: TopoDS_Shape, obj_filename: str) -> None: ...
def read_gltf_file(
filename: str,
is_parallel: bool = False,
is_double_precision: bool = False,
skip_late_data_loading: bool = False,
keep_late_data: bool = True,
verbose: bool = False,
load_all_scenes: bool = False,
) -> List[TopoDS_Shape]: ...
def write_gltf_file(
a_shape: TopoDS_Shape, gltf_filename: str, binary: bool = True
) -> None: ...