Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
polymesh
Commits
461d716f
Commit
461d716f
authored
Sep 23, 2020
by
Philip Trettner
Browse files
Merge branch 'feature/stats-outstream-template' into 'develop'
Feature/stats outstream template See merge request
!26
parents
52c7cd14
0e830b80
Changes
1
Show whitespace changes
Inline
Side-by-side
src/polymesh/algorithms/stats.hh
View file @
461d716f
#pragma once
#pragma once
#include <iostream>
#include <sstream>
#include <sstream>
#include <polymesh/Mesh.hh>
#include <polymesh/Mesh.hh>
...
@@ -15,12 +14,12 @@ namespace polymesh
...
@@ -15,12 +14,12 @@ namespace polymesh
/// - number of primitives
/// - number of primitives
/// - components
/// - components
/// - aabb
/// - aabb
template
<
class
Vec3
=
void
>
template
<
class
Vec3
=
void
,
class
OutStream
>
void
print_stats
(
std
::
os
tream
&
out
,
Mesh
const
&
m
,
vertex_attribute
<
Vec3
>
const
*
position
=
nullptr
);
void
print_stats
(
OutS
tream
&
out
,
Mesh
const
&
m
,
vertex_attribute
<
Vec3
>
const
*
position
=
nullptr
);
// ======== IMPLEMENTATION ========
// ======== IMPLEMENTATION ========
template
<
class
Vec3
>
template
<
class
Vec3
,
class
OutStream
>
void
print_stats
(
std
::
os
tream
&
out
,
Mesh
const
&
m
,
vertex_attribute
<
Vec3
>
const
*
position
)
void
print_stats
(
OutS
tream
&
out
,
Mesh
const
&
m
,
vertex_attribute
<
Vec3
>
const
*
position
)
{
{
auto
ln
=
"
\n
"
;
auto
ln
=
"
\n
"
;
...
...
Write
Preview
Supports
Markdown
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