-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vladimir Elistratov
committed
Dec 23, 2020
1 parent
3826257
commit a38166d
Showing
56 changed files
with
4,319 additions
and
149 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
debug/repeated_indices/113819239_bochum_berliner_strasse_42.py
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,80 @@ | ||
import pytest | ||
from mathutils import Vector | ||
from bpypolyskel import bpypolyskel | ||
|
||
|
||
verts = [ | ||
Vector((0.0, 0.0, 0.0)), | ||
Vector((-6.884493827819824, -7.013123035430908, 0.0)), | ||
Vector((2.6068222522735596, -16.542076110839844, 0.0)), | ||
Vector((6.322926044464111, -12.746077537536621, 0.0)), | ||
Vector((6.565582752227783, -13.024375915527344, 0.0)), | ||
Vector((7.134091854095459, -13.313806533813477, 0.0)), | ||
Vector((7.751131534576416, -13.336069107055664, 0.0)), | ||
Vector((8.361238479614258, -13.2470121383667, 0.0)), | ||
Vector((9.040675163269043, -12.890789031982422, 0.0)), | ||
Vector((9.442790031433105, -12.49003791809082, 0.0)), | ||
Vector((9.678512573242188, -11.955703735351562, 0.0)), | ||
Vector((9.7409086227417, -11.354578971862793, 0.0)), | ||
Vector((9.664644241333008, -10.764585494995117, 0.0)), | ||
Vector((9.11693286895752, -9.94082260131836, 0.0)), | ||
Vector((9.574512481689453, -9.495543479919434, 0.0)), | ||
Vector((6.9676899909973145, -7.001991271972656, 0.0)), | ||
Vector((8.090838432312012, -5.977850437164307, 0.0)), | ||
Vector((3.8200929164886475, -1.6920548677444458, 0.0)), | ||
Vector((2.7801406383514404, -2.7273268699645996, 0.0)), | ||
Vector((0.0, 0.0, 5.844099521636963)), | ||
Vector((-6.884493827819824, -7.013123035430908, 5.844099521636963)), | ||
Vector((2.6068222522735596, -16.542076110839844, 5.844099521636963)), | ||
Vector((6.322926044464111, -12.746077537536621, 5.844099521636963)), | ||
Vector((6.565582752227783, -13.024375915527344, 5.844099521636963)), | ||
Vector((7.134091854095459, -13.313806533813477, 5.844099521636963)), | ||
Vector((7.751131534576416, -13.336069107055664, 5.844099521636963)), | ||
Vector((8.361238479614258, -13.2470121383667, 5.844099521636963)), | ||
Vector((9.040675163269043, -12.890789031982422, 5.844099521636963)), | ||
Vector((9.442790031433105, -12.49003791809082, 5.844099521636963)), | ||
Vector((9.678512573242188, -11.955703735351562, 5.844099521636963)), | ||
Vector((9.7409086227417, -11.354578971862793, 5.844099521636963)), | ||
Vector((9.664644241333008, -10.764585494995117, 5.844099521636963)), | ||
Vector((9.11693286895752, -9.94082260131836, 5.844099521636963)), | ||
Vector((9.574512481689453, -9.495543479919434, 5.844099521636963)), | ||
Vector((6.9676899909973145, -7.001991271972656, 5.844099521636963)), | ||
Vector((8.090838432312012, -5.977850437164307, 5.844099521636963)), | ||
Vector((3.8200929164886475, -1.6920548677444458, 5.844099521636963)), | ||
Vector((2.7801406383514404, -2.7273268699645996, 5.844099521636963)) | ||
] | ||
unitVectors = [ | ||
Vector((-0.7005321383476257, -0.7136207818984985, 0.0)), | ||
Vector((0.7057061791419983, -0.7085046768188477, 0.0)), | ||
Vector((0.6995468139648438, 0.7145867943763733, 0.0)), | ||
Vector((0.6571930646896362, -0.7537223100662231, 0.0)), | ||
Vector((0.8911581635475159, -0.4536927342414856, 0.0)), | ||
Vector((0.9993497133255005, -0.03605618327856064, 0.0)), | ||
Vector((0.9895137548446655, 0.1444387584924698, 0.0)), | ||
Vector((0.8856558799743652, 0.4643421471118927, 0.0)), | ||
Vector((0.7083069086074829, 0.7059047222137451, 0.0)), | ||
Vector((0.4036214053630829, 0.9149261116981506, 0.0)), | ||
Vector((0.10324414074420929, 0.9946560859680176, 0.0)), | ||
Vector((-0.12819652259349823, 0.9917488098144531, 0.0)), | ||
Vector((-0.5536752939224243, 0.8327326774597168, 0.0)), | ||
Vector((0.7166738510131836, 0.6974084973335266, 0.0)), | ||
Vector((-0.7226322293281555, 0.6912327408790588, 0.0)), | ||
Vector((0.7389250993728638, 0.6737874746322632, 0.0)), | ||
Vector((-0.7058619856834412, 0.7083494663238525, 0.0)), | ||
Vector((-0.7086997032165527, -0.7055102586746216, 0.0)), | ||
Vector((-0.7138547897338867, 0.7002938389778137, 0.0)) | ||
] | ||
holesInfo = None | ||
firstVertIndex = 19 | ||
numPolygonVerts = 19 | ||
|
||
|
||
faces = bpypolyskel.polygonize(verts, firstVertIndex, numPolygonVerts, holesInfo, 0.0, 0.5, None, unitVectors) | ||
|
||
|
||
for face in faces: | ||
assert len(face) >= 3 | ||
|
||
|
||
for face in faces: | ||
assert len(face) == len(set(face)) |
53 changes: 53 additions & 0 deletions
53
debug/repeated_indices/268235681_sudogda_kommunisticheskaya_8a.py
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,53 @@ | ||
import pytest | ||
from mathutils import Vector | ||
from bpypolyskel import bpypolyskel | ||
|
||
|
||
verts = [ | ||
Vector((-0.09972011297941208, -9.874038696289062, 0.0)), | ||
Vector((66.52579498291016, -10.541441917419434, 0.0)), | ||
Vector((66.66270446777344, 2.7835028171539307, 0.0)), | ||
Vector((54.77734375, 2.9057867527008057, 0.0)), | ||
Vector((54.74622344970703, -0.5451177954673767, 0.0)), | ||
Vector((24.269329071044922, -0.23370260000228882, 0.0)), | ||
Vector((24.46242904663086, 18.701744079589844, 0.0)), | ||
Vector((8.557175636291504, 18.85753059387207, 0.0)), | ||
Vector((8.370238304138184, -0.07791551202535629, 0.0)), | ||
Vector((0.0, 0.0, 0.0)), | ||
Vector((-0.09972011297941208, -9.874038696289062, 8.733570098876953)), | ||
Vector((66.52579498291016, -10.541441917419434, 8.733570098876953)), | ||
Vector((66.66270446777344, 2.7835028171539307, 8.733570098876953)), | ||
Vector((54.77734375, 2.9057867527008057, 8.733570098876953)), | ||
Vector((54.74622344970703, -0.5451177954673767, 8.733570098876953)), | ||
Vector((24.269329071044922, -0.23370260000228882, 8.733570098876953)), | ||
Vector((24.46242904663086, 18.701744079589844, 8.733570098876953)), | ||
Vector((8.557175636291504, 18.85753059387207, 8.733570098876953)), | ||
Vector((8.370238304138184, -0.07791551202535629, 8.733570098876953)), | ||
Vector((0.0, 0.0, 8.733570098876953)) | ||
] | ||
unitVectors = [ | ||
Vector((0.9999498128890991, -0.010016728192567825, 0.0)), | ||
Vector((0.010274133644998074, 0.999947190284729, 0.0)), | ||
Vector((-0.9999471306800842, 0.010288074612617493, 0.0)), | ||
Vector((-0.009017645381391048, -0.9999592900276184, 0.0)), | ||
Vector((-0.9999477863311768, 0.010217541828751564, 0.0)), | ||
Vector((0.010197275318205357, 0.9999480843544006, 0.0)), | ||
Vector((-0.9999520778656006, 0.009794188663363457, 0.0)), | ||
Vector((-0.00987186748534441, -0.9999512434005737, 0.0)), | ||
Vector((-0.9999567270278931, 0.009308233857154846, 0.0)), | ||
Vector((-0.010098707862198353, -0.999949038028717, 0.0)) | ||
] | ||
holesInfo = None | ||
firstVertIndex = 10 | ||
numPolygonVerts = 10 | ||
|
||
|
||
faces = bpypolyskel.polygonize(verts, firstVertIndex, numPolygonVerts, holesInfo, 0.0, 0.5, None, unitVectors) | ||
|
||
|
||
for face in faces: | ||
assert len(face) >= 3 | ||
|
||
|
||
for face in faces: | ||
assert len(face) == len(set(face)) |
Oops, something went wrong.