Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
openmesh-python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenMesh
openmesh-python
Commits
621850d0
Commit
621850d0
authored
Feb 27, 2018
by
Alexander Dielen
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use the non-skipping ranges
parent
e53ab0b1
Pipeline
#6325
passed with stages
in 5 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/Mesh.hh
src/Mesh.hh
+4
-4
No files found.
src/Mesh.hh
View file @
621850d0
...
...
@@ -165,7 +165,7 @@ py::array_t<int> face_vertex_indices_trimesh(TriMesh& _self) {
return
py
::
array_t
<
int
>
();
}
int
*
indices
=
new
int
[
_self
.
n_faces
()
*
3
];
for
(
auto
fh
:
_self
.
faces
())
{
for
(
auto
fh
:
_self
.
all_
faces
())
{
auto
fv_it
=
_self
.
fv_iter
(
fh
);
indices
[
fh
.
idx
()
*
3
+
0
]
=
fv_it
->
idx
();
++
fv_it
;
indices
[
fh
.
idx
()
*
3
+
1
]
=
fv_it
->
idx
();
++
fv_it
;
...
...
@@ -183,7 +183,7 @@ py::array_t<int> halfedge_vertex_indices(Mesh& _self) {
return
py
::
array_t
<
int
>
();
}
int
*
indices
=
new
int
[
_self
.
n_halfedges
()
*
2
];
for
(
auto
heh
:
_self
.
halfedges
())
{
for
(
auto
heh
:
_self
.
all_
halfedges
())
{
auto
vh1
=
_self
.
from_vertex_handle
(
heh
);
auto
vh2
=
_self
.
to_vertex_handle
(
heh
);
indices
[
heh
.
idx
()
*
2
+
0
]
=
vh1
.
idx
();
...
...
@@ -249,7 +249,7 @@ py::array_t<int> edge_other_indices(Mesh& _self) {
return
py
::
array_t
<
int
>
();
}
int
*
indices
=
new
int
[
_self
.
n_edges
()
*
2
];
for
(
auto
eh
:
_self
.
edges
())
{
for
(
auto
eh
:
_self
.
all_
edges
())
{
CopyFunc
::
call
(
_self
,
eh
,
&
indices
[
eh
.
idx
()
*
2
]);
}
const
auto
shape
=
{
_self
.
n_edges
(),
size_t
(
2
)};
...
...
@@ -264,7 +264,7 @@ py::array_t<int> halfedge_other_indices(Mesh& _self) {
return
py
::
array_t
<
int
>
();
}
int
*
indices
=
new
int
[
_self
.
n_halfedges
()];
for
(
auto
heh
:
_self
.
halfedges
())
{
for
(
auto
heh
:
_self
.
all_
halfedges
())
{
CopyFunc
::
call
(
_self
,
heh
,
&
indices
[
heh
.
idx
()]);
}
const
auto
shape
=
{
_self
.
n_halfedges
()};
...
...
Alexander Dielen
@adielen
mentioned in issue
#10 (closed)
·
Feb 27, 2018
mentioned in issue
#10 (closed)
mentioned in issue #10
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment