-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrapidobj.pyi
More file actions
53 lines (34 loc) · 1014 Bytes
/
rapidobj.pyi
File metadata and controls
53 lines (34 loc) · 1014 Bytes
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
from __future__ import annotations
from typing import TypeAlias
import numpy as np
from numpy.typing import NDArray
Float32Array: TypeAlias = NDArray[np.float32]
IntArray: TypeAlias = NDArray[np.int_]
class ObjParseResult:
@property
def ok(self) -> bool: ...
@property
def error_message(self) -> str: ...
@property
def vertex_count(self) -> int: ...
@property
def normal_count(self) -> int: ...
@property
def uv_count(self) -> int: ...
@property
def shape_count(self) -> int: ...
@property
def material_count(self) -> int: ...
@property
def texture_paths(self) -> list[str]: ...
@property
def vertices(self) -> Float32Array: ...
@property
def faces(self) -> IntArray: ...
@property
def texcoords(self) -> Float32Array: ...
@property
def wedge_texcoord_indices(self) -> IntArray: ...
@property
def wedge_material_ids(self) -> IntArray: ...
def parse_obj(filename: str) -> ObjParseResult: ...