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
4
Merge Requests
4
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
b05912ae
Commit
b05912ae
authored
Oct 27, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ugly init
parent
d7677598
Pipeline
#3399
failed with stage
in 33 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/OpenMesh/Apps/Subdivider/adaptive_subdivider.cc
src/OpenMesh/Apps/Subdivider/adaptive_subdivider.cc
+4
-3
No files found.
src/OpenMesh/Apps/Subdivider/adaptive_subdivider.cc
View file @
b05912ae
...
...
@@ -60,6 +60,7 @@
#include <iostream>
#include <fstream>
#include <sstream>
#include <limits>
#if defined(OM_CC_MIPS)
# include <math.h>
#else
...
...
@@ -151,7 +152,7 @@ void usage_and_exit(const std::string& _fname, int xcode);
int
main
(
int
argc
,
char
**
argv
)
{
size_t
n_iter
=
0
;
// n iteration
size_t
max_nv
=
s
ize_t
(
-
1
);
// max. number of vertices in the end
size_t
max_nv
=
s
td
::
limits
<
size_t
>::
max
(
);
// max. number of vertices in the end
std
::
string
ifname
;
// input mesh
std
::
string
ofname
;
// output mesh
std
::
string
rule_sequence
=
"Tvv3 VF FF FVc"
;
// sqrt3 default
...
...
@@ -207,11 +208,11 @@ int main(int argc, char **argv)
if
(
n_iter
>
0
)
std
::
cout
<<
"Desired #iterations: "
<<
n_iter
<<
std
::
endl
;
if
(
max_nv
<
s
ize_t
(
-
1
)
)
if
(
max_nv
<
s
td
::
limits
<
size_t
>::
max
(
)
)
{
std
::
cout
<<
"Desired max. #V : "
<<
max_nv
<<
std
::
endl
;
if
(
!
n_iter
)
n_iter
=
s
ize_t
(
-
1
);
n_iter
=
s
td
::
limits
<
size_t
>::
max
(
);
}
...
...
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