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?
![image](https://private-user-images.githubusercontent.com/159110675/323220757-b8be913c-07f4-4bb8-874d-fc34501dc72f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5OTAyMjUsIm5iZiI6MTczODk4OTkyNSwicGF0aCI6Ii8xNTkxMTA2NzUvMzIzMjIwNzU3LWI4YmU5MTNjLTA3ZjQtNGJiOC04NzRkLWZjMzQ1MDFkYzcyZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQwNDQ1MjVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jOTVlNzVjZDQ4ZGIwMWI3ZDljMzM4NTMzZTM2YTBiZjYyNjAyZWM2NmRiNThlNjYwZGQyYTFjOTkyNDllN2ZiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ltkVfL62aJo-xzqgdL1VxJa3enIa97ovGfS6kqhBgoE)
Beta Was this translation helpful? Give feedback.
All reactions