Anomally with Points #2498
Replies: 2 comments 1 reply
-
Probably b/c you have a Style that includes a point symbol. It will apply to the entire geometry including the line segment. |
Beta Was this translation helpful? Give feedback.
-
So I have these styles defined... ...but if I comment out the PointSymbol then I lose the ability to colour and size and it becomes just a white square, still on both ends though? |
Beta Was this translation helpful? Give feedback.
-
Why when I do this...
osg::ref_ptr multi = new MultiGeometry();
osg::ref_ptr pline = new LineString(2);
pline->push_back(m_BARLine.gpStart.x(), m_BARLine.gpStart.y(), m_BARLine.gpStart.z());
pline->push_back(m_BARLine.gpStop.x(), m_BARLine.gpStop.y(), m_BARLine.gpStop.z());
osg::ref_ptr basepoint = new Point(1);
basepoint->set(osg::Vec3d(m_BARLine.gpStart.x(), m_BARLine.gpStart.y(), m_BARLine.gpStart.z()));
multi->add(basepoint);
multi->add(pline);
Does the point appear on both ends of the line like this?
Beta Was this translation helpful? Give feedback.
All reactions