-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from alemuntoni/master
Renamings
- Loading branch information
Showing
29 changed files
with
161 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .meshlab import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#### | ||
# | ||
# OBJ File Generated by Meshlab | ||
# | ||
#### | ||
# Object cube.obj | ||
# | ||
# Vertices: 8 | ||
# Faces: 12 | ||
# | ||
#### | ||
v -0.500000 -0.500000 -0.500000 | ||
v 0.500000 -0.500000 -0.500000 | ||
v -0.500000 0.500000 -0.500000 | ||
v 0.500000 0.500000 -0.500000 | ||
v -0.500000 -0.500000 0.500000 | ||
v 0.500000 -0.500000 0.500000 | ||
v -0.500000 0.500000 0.500000 | ||
v 0.500000 0.500000 0.500000 | ||
# 8 vertices, 0 vertices normals | ||
|
||
f 3 2 1 | ||
f 2 3 4 | ||
f 5 3 1 | ||
f 3 5 7 | ||
f 2 5 1 | ||
f 5 2 6 | ||
f 7 6 8 | ||
f 6 7 5 | ||
f 4 7 8 | ||
f 7 4 3 | ||
f 6 4 8 | ||
f 4 6 2 | ||
# 12 faces, 0 coords texture | ||
|
||
# End of File |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
import pytest | ||
from pymeshlab import pymeshlabserver as pymls | ||
import pymeshlab as ml | ||
from . import samples_common | ||
|
||
def test_load_meshes(): | ||
print('\n') | ||
base_path = samples_common.samples_absolute_path() | ||
md = pymls.MeshDocument() | ||
ms = ml.MeshSet() | ||
|
||
md.load_mesh(base_path + "bone.ply") | ||
ms.load_mesh(base_path + "bone.ply") | ||
|
||
print(md.number_meshes()) | ||
print(ms.number_meshes()) | ||
|
||
md.load_mesh(base_path + "airplane.obj") | ||
ms.load_mesh(base_path + "airplane.obj") | ||
|
||
print(md.number_meshes()) | ||
print(ms.number_meshes()) | ||
|
||
assert md.number_meshes() == 2 | ||
assert ms.number_meshes() == 2 | ||
|
||
md.set_current_mesh(0) | ||
ms.set_current_mesh(0) | ||
|
||
print(md.current_mesh().vertex_number()) | ||
print(ms.current_mesh().vertex_number()) | ||
|
||
assert md.current_mesh().vertex_number() == 1872 | ||
assert ms.current_mesh().vertex_number() == 1872 | ||
|
||
md.set_current_mesh(1) | ||
ms.set_current_mesh(1) | ||
|
||
print(md.current_mesh().vertex_number()) | ||
print(ms.current_mesh().vertex_number()) | ||
|
||
assert md.current_mesh().vertex_number() == 7017 | ||
assert ms.current_mesh().vertex_number() == 7017 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import pytest | ||
from pymeshlab import pymeshlabserver as pymls | ||
import pymeshlab as ml | ||
from . import samples_common | ||
|
||
def test_save_meshe(): | ||
def test_save_mesh(): | ||
print('\n') | ||
base_path = samples_common.samples_absolute_path() | ||
output_path = samples_common.test_output_path() | ||
md = pymls.MeshDocument() | ||
ms = ml.MeshSet() | ||
|
||
md.load_mesh(base_path + "bone.ply") | ||
ms.load_mesh(base_path + "bone.ply") | ||
|
||
md.save_mesh(output_path + "bone_saved.obj") | ||
ms.save_mesh(output_path + "bone_saved.obj") |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.