Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
triangular-interpolants
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gregor Kobsik
triangular-interpolants
Commits
5e50b6cf
Commit
5e50b6cf
authored
5 years ago
by
Gregor Kobsik
Browse files
Options
Downloads
Patches
Plain Diff
added small API to get values and positions of control points
parent
708a8c22
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Geometry/TriMeshCT.cc
+16
-0
16 additions, 0 deletions
src/Geometry/TriMeshCT.cc
src/Geometry/TriMeshCT.hh
+3
-0
3 additions, 0 deletions
src/Geometry/TriMeshCT.hh
with
19 additions
and
0 deletions
src/Geometry/TriMeshCT.cc
+
16
−
0
View file @
5e50b6cf
...
...
@@ -30,6 +30,22 @@ TriMeshCT::TriMeshCT(
this
->
readFromObj
(
filename
);
}
glm
::
vec3
TriMeshCT
::
getPosValue
(
TriMeshCT
::
ControlPoint
cp
,
uint
valueIdx
)
{
return
glm
::
vec3
(
cp
.
pos
[
0
],
cp
.
val
[
valueIdx
],
cp
.
pos
[
1
]);
}
float
TriMeshCT
::
getValue
(
TriMeshCT
::
ControlPoint
cp
,
uint
valueIdx
)
{
return
cp
.
val
[
valueIdx
];
}
void
TriMeshCT
::
readFromObj
(
const
std
::
string
&
filename
...
...
This diff is collapsed.
Click to expand it.
src/Geometry/TriMeshCT.hh
+
3
−
0
View file @
5e50b6cf
...
...
@@ -27,6 +27,9 @@ public:
static
OpenMesh
::
HPropHandleT
<
ControlPoint
>
T
,
C
,
I1
,
I2
;
//^ control points on the left hand side of the half-edge; name convention: Mann, 1998
static
glm
::
vec3
getPosValue
(
TriMeshCT
::
ControlPoint
cp
,
uint
valueIdx
);
static
float
getValue
(
TriMeshCT
::
ControlPoint
cp
,
uint
valueIdx
);
public
:
TriMeshCT
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment