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
OpenFlipper-Free
OpenFlipper
Commits
fb51972a
Commit
fb51972a
authored
Jul 26, 2017
by
Jan Möbius
Browse files
Fixed handling of halfedges in selection nodes (Not updated on geometr change).
Closes #112
parent
26a7c0e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs_required/ACG/Scenegraph/StatusNodesT.cc
View file @
fb51972a
...
...
@@ -132,6 +132,13 @@ StatusNodeT<Mesh, Mod>::
update_cache
()
{
if
(
invalidGeometry_
)
{
// Vertices, Edges and Faces use the mesh geometry.
// However Halfedge selection buffers are computed.
// Therefore we have to invalidate them when
// the geometry changes to force a recomputation.
halfedgeCacheInvalid_
=
true
;
bbMin_
=
Vec3d
(
FLT_MAX
,
FLT_MAX
,
FLT_MAX
);
bbMax_
=
Vec3d
(
-
FLT_MAX
,
-
FLT_MAX
,
-
FLT_MAX
);
...
...
@@ -143,6 +150,7 @@ update_cache()
}
invalidGeometry_
=
false
;
}
/*
...
...
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