Message 1 of 3
Custom graphics point disappears depending on view orientation, possible bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
When I draw a single point with custom graphics it appears in the view, but when the models y-axis comes close to orthogonal with the screen, the point disappears, re-appearing when the y-axis is pointed away. I do not understand why this happens. It seems like a bug to me. I need to draw a point that is always visible, no matter the models orientation. Below is my code and a video that demos the issue. The point is drawn as a green circle.
def draw_points():
app = adsk.core.Application.get()
view = app.activeViewport
#delete all custom graphics groups
cnt = root.customGraphicsGroups.count
if cnt > 0:
for i in range(cnt):
root.customGraphicsGroups.item(i).deleteMe()
graphics = root.customGraphicsGroups.add()
coordArray = [10,0,0]
pointIndices = [0]
coords = adsk.fusion.CustomGraphicsCoordinates.create(coordArray)
points = graphics.addPointSet(coords, pointIndices, adsk.fusion.CustomGraphicsPointTypes.UserDefinedCustomGraphicsPointType,'TestPoint.png')
view.refresh()
Here's a demo of the problem: