Graham,
Thanks for the quick reply.
Your classes look quite tidy and re-usable.
You use OpenGL a lot, which is fine by me.
I have tried various keys:
I am getting a crash with 'a', 'c', 'e', 't'.
This crashes in WCNurbsCurve::PointInversion because glMapBuffer
returns NULL.
I use OpenGL for drawing things, but I've never used glMapBuffer, so
I'm not sure what it does.
The line above it:
glBindBuffer(GL_ARRAY_BUFFER, this->_buffer);
this->_buffer is 0.
Shouldn't glGenBuffers have been called somewhere first?
Dan.
- 'a' creates a two-point arc (center, start of arc, end of arc)
This crashes in WCNurbsCurve::PointInversion because glMapBuffer
returns NULL
- 'c' create a circle
This crashes in WCNurbsCurve::PointInversion because glMapBuffer
returns NULL
- 'd' adds dimensional constraints
This works OK, I press 'd' then I can drag a dimension, looks good.
- 'e' creates an ellipse
This crashes in WCNurbsCurve::PointInversion because glMapBuffer
returns NULL
- 'f' fixes the feature (will be used when we have automatic
constraint management)
Not used yet, I guess.
- 'h' toggle hide/show constraints
This works OK, toggles hide/show dimensions.
- 'l' creates a line
This works OK.
- 'o' creates a conic section
I can't work out what this does.
- 'p' creates a point
This works OK.
- 'q' exits the workbench back to 3D mode
This works OK.
- 'r' creates a rectangular profile
This works OK.
- 's' toggles snap to grid
This works OK.
- 't' creates a three-point arc (start, end, somewhere on arc)
This crashes in WCNurbsCurve::PointInversion because glMapBuffer
returns NULL
- 'w' marks the feature as construction
I don't know what this does.
- 'x' creates an axis line (may not be visible on Windows - possible
bug)
Seems to work just like 'l - creates line' but makes a dotted line.