Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenMesh
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenMesh
OpenMesh
Commits
ca7abc7e
Commit
ca7abc7e
authored
Jan 13, 2017
by
Janis Born
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request mesh element status in MidpointT subdivision and fix a possible infinite loop
parent
3dd0d209
Pipeline
#4150
passed with stage
in 50 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/OpenMesh/Tools/Subdivider/Uniform/MidpointT.hh
src/OpenMesh/Tools/Subdivider/Uniform/MidpointT.hh
+5
-0
No files found.
src/OpenMesh/Tools/Subdivider/Uniform/MidpointT.hh
View file @
ca7abc7e
...
@@ -47,6 +47,10 @@ protected: // SubdividerT interface
...
@@ -47,6 +47,10 @@ protected: // SubdividerT interface
//! @note The _update_points option is ignored
//! @note The _update_points option is ignored
bool
subdivide
(
mesh_t
&
_m
,
size_t
_n
,
const
bool
_update_points
=
true
)
bool
subdivide
(
mesh_t
&
_m
,
size_t
_n
,
const
bool
_update_points
=
true
)
{
{
_m
.
request_halfedge_status
();
_m
.
request_edge_status
();
_m
.
request_vertex_status
();
_m
.
request_face_status
();
PropertyManager
<
EPropHandleT
<
typename
mesh_t
::
VertexHandle
>
,
mesh_t
>
edge_midpoint
(
_m
,
"edge_midpoint"
);
PropertyManager
<
EPropHandleT
<
typename
mesh_t
::
VertexHandle
>
,
mesh_t
>
edge_midpoint
(
_m
,
"edge_midpoint"
);
PropertyManager
<
VPropHandleT
<
bool
>
,
mesh_t
>
is_original_vertex
(
_m
,
"is_original_vertex"
);
PropertyManager
<
VPropHandleT
<
bool
>
,
mesh_t
>
is_original_vertex
(
_m
,
"is_original_vertex"
);
...
@@ -90,6 +94,7 @@ protected: // SubdividerT interface
...
@@ -90,6 +94,7 @@ protected: // SubdividerT interface
_m
.
delete_vertex
(
vh
);
_m
.
delete_vertex
(
vh
);
}
}
}
}
_m
.
garbage_collection
();
}
}
return
true
;
return
true
;
}
}
...
...
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