Skip to content

Commit b5a8269

Browse files
committed
feat: Update version to 1.0.9 in pyproject.toml and package.json; refactor index_sizes field in Mesh class
1 parent 5e89c4d commit b5a8269

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

python/meshly/mesh.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ class Mesh(BaseModel):
117117
indices: Optional[Union[np.ndarray, List[Any]]] = Field(
118118
None, description="Index data as a flattened 1D numpy array or list of polygons"
119119
)
120-
index_sizes: Optional[Union[np.ndarray, List[int]]] = Field(
121-
None, description="Size of each polygon (number of vertices per polygon). "
122-
"If not provided, will be automatically inferred from indices structure: "
123-
"- For 2D numpy arrays: uniform polygon size from array shape "
124-
"- For list of lists: individual polygon sizes "
125-
"If explicitly provided, will be validated against inferred structure."
126-
)
127-
120+
index_sizes: Optional[Union[np.ndarray, List[int]]] = None
121+
"""
122+
Size of each polygon (number of vertices per polygon). "
123+
"If not provided, will be automatically inferred from indices structure: "
124+
"- For 2D numpy arrays: uniform polygon size from array shape "
125+
"- For list of lists: individual polygon sizes "
126+
"If explicitly provided, will be validated against inferred structure.
127+
"""
128+
128129
def copy(self: T) -> T:
129130
"""
130131
Create a deep copy of the mesh.

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "meshly"
7-
version = "1.0.8"
7+
version = "1.0.9"
88
description = "High-level abstractions and utilities for working with meshoptimizer"
99
readme = "README.md"
1010
license = {text = "MIT"}

typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meshly",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"type": "commonjs",
55
"description": "TypeScript library to decode Python meshoptimizer zip files into THREE.js geometries",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)