Skip to content

Commit 159b86a

Browse files
author
tpat
committed
Comets moved back such that end of comet is at origin of vector
1 parent d819a31 commit 159b86a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Modules/Visualization/ShowFieldGlyphs.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ void GlyphBuilder::addGlyph(
179179
case RenderState::GlyphType::COMET_GLYPH:
180180
{
181181
double sphere_extrusion = 0.0625f;
182-
glyphs.addComet(p1, p2, radius, resolution, node_color, node_color, sphere_extrusion);
182+
Vector dir = (p2 - p1);
183+
glyphs.addComet(p1-dir, p1, radius, resolution, node_color, node_color, sphere_extrusion);
183184
break;
184185
}
185186
case RenderState::GlyphType::CONE_GLYPH:

0 commit comments

Comments
 (0)