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
ab449c9d
Commit
ab449c9d
authored
Jun 25, 2018
by
Philip Trettner
Browse files
working on algos
parent
ed5f6d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/polymesh/Mesh.hh
View file @
ab449c9d
...
...
@@ -1120,24 +1120,48 @@ vertex_property<PropT> vertex_collection::make_property(const PropT &def_value)
return
vertex_property
<
PropT
>
(
mesh
,
def_value
);
}
template
<
typename
PropT
>
vertex_property
<
PropT
>
const_vertex_collection
::
make_property
(
const
PropT
&
def_value
)
{
return
vertex_property
<
PropT
>
(
mesh
,
def_value
);
}
template
<
typename
PropT
>
face_property
<
PropT
>
face_collection
::
make_property
(
const
PropT
&
def_value
)
{
return
face_property
<
PropT
>
(
mesh
,
def_value
);
}
template
<
typename
PropT
>
face_property
<
PropT
>
const_face_collection
::
make_property
(
const
PropT
&
def_value
)
{
return
face_property
<
PropT
>
(
mesh
,
def_value
);
}
template
<
typename
PropT
>
edge_property
<
PropT
>
edge_collection
::
make_property
(
const
PropT
&
def_value
)
{
return
edge_property
<
PropT
>
(
mesh
,
def_value
);
}
template
<
typename
PropT
>
edge_property
<
PropT
>
const_edge_collection
::
make_property
(
const
PropT
&
def_value
)
{
return
edge_property
<
PropT
>
(
mesh
,
def_value
);
}
template
<
typename
PropT
>
halfedge_property
<
PropT
>
halfedge_collection
::
make_property
(
const
PropT
&
def_value
)
{
return
halfedge_property
<
PropT
>
(
mesh
,
def_value
);
}
template
<
typename
PropT
>
halfedge_property
<
PropT
>
const_halfedge_collection
::
make_property
(
const
PropT
&
def_value
)
{
return
halfedge_property
<
PropT
>
(
mesh
,
def_value
);
}
inline
void
Mesh
::
register_prop
(
vertex_property_base
*
prop
)
const
{
// insert in front
...
...
src/polymesh/algorithms/geodesic_fast_marching.hh
0 → 100644
View file @
ab449c9d
#pragma once
#include
<glm/glm.hpp>
#include
<polymesh/Mesh.hh>
namespace
polymesh
{
vertex_property
<
float
>
geodesic_fast_marching_linear
(
Mesh
const
&
m
,
vertex_property
<
glm
::
vec3
>
const
&
position
)
{
auto
dis
=
m
.
vertices
().
make_property
<
float
>
(
-
1
);
// TODO
return
dis
;
}
}
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