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
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenMesh
OpenMesh
Commits
e8247d64
Commit
e8247d64
authored
Jan 12, 2017
by
Janis Born
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add documentation for MidpointT
parent
ecb15612
Pipeline
#4123
passed with stage
in 40 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Doc/subdivider.docu
Doc/subdivider.docu
+1
-0
src/OpenMesh/Tools/Subdivider/Uniform/MidpointT.hh
src/OpenMesh/Tools/Subdivider/Uniform/MidpointT.hh
+15
-0
No files found.
Doc/subdivider.docu
View file @
e8247d64
...
...
@@ -14,6 +14,7 @@ subdivision:
-# OpenMesh::Subdivider::Uniform::InterpolatingSqrt3LGT
-# OpenMesh::Subdivider::Uniform::CompositeT
-# OpenMesh::Subdivider::Uniform::CatmullClarkT
-# OpenMesh::Subdivider::Uniform::MidpointT
-# Adaptive subdivision
-# OpenMesh::Subdivider::Adaptive::CompositeT
-# Simple subdivision
...
...
src/OpenMesh/Tools/Subdivider/Uniform/MidpointT.hh
View file @
e8247d64
...
...
@@ -10,6 +10,19 @@ namespace OpenMesh {
namespace
Subdivider
{
namespace
Uniform
{
/**
* Midpoint subdivision algorithm.
*
* With every step, the set of vertices is replaced with by the midpoints of all
* current edges. Then, two sets of faces are created to set up the new
* connectivity: From all midpoints of edges surrounding an original face, a new
* face is created. Also, for all midpoints of edges surrounding an original
* vertex, a new face is created.
*
* @note This algorithm ignores the _update_points option.
* @note This algorithm is best suited for closed meshes since boundaries tend
* to fragment into isolated faces after a few iterations.
*/
template
<
typename
MeshType
,
typename
RealType
=
double
>
class
MidpointT
:
public
SubdividerT
<
MeshType
,
RealType
>
{
...
...
@@ -30,6 +43,8 @@ protected: // SubdividerT interface
return
true
;
}
//! Performs one step of Midpoint subdivision.
//! @note The _update_points option is ignored
bool
subdivide
(
mesh_t
&
_m
,
size_t
_n
,
const
bool
_update_points
=
true
)
{
PropertyManager
<
EPropHandleT
<
typename
mesh_t
::
VertexHandle
>
,
mesh_t
>
edge_midpoint
(
_m
,
"edge_midpoint"
);
...
...
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