Refresh model viewing extents?
-
-
That's the one! Thanks Thom, I kept looking in the view class and model class and boundingbox class. I didn't think to check the tool class, thanks!
Chris
-
So does getExtents help with the clipping that occurs sometimes when drawing with the openGL primitives in a Tool?
-
I hope so. That is what I understood fromt he description.
I am writing a few tiny code snippets to show to to work with the view.draw methods. And one of them is severly handicapped by clipping. So I thought it would be a good time to try this method out. I have not played with it yet though.
Chris
-
@jim said:
So does getExtents help with the clipping that occurs sometimes when drawing with the openGL primitives in a Tool?
It seems that SU will only draw stuff that lies within the model boundary unless you implement the
getExtents
method.For my teapot plugin I just fed the boundingbox the points in my PolygonMesh and it then drew everything fine without ever clipping.
-
Yup, it worked like a charm. I had some cliping because I was trying to draw GL lines well outside the model bounds. Implemented that and it fixed it right up. I get no more clipping, hooray!
Thanks again for remembering what it was called Thom.
Chris
-
What are you working on this time Chris?
-
Nothing cool right now. I am just trying to learn the screen drawing stuff better. I have implemented it in Shape Bender, but quite frankly I'm surprised it works because how poorly I understood what it was doing when I wrote it.
I am getting a much more solid grasp now on these various draw methods, and then I think I'll just post a bunch of simple examples of how drawing to the screen works, and how to use some of the tool classes, like resume and suspend to help the screen drawing look smooth.
Its just personal stuff that I want to learn, then I'll post what I figured out.
Chris
Then once I figure it out, I'll need to find something fun to put it to use on
-
@chris fullmer said:
Then once I figure it out, I'll need to find something fun to put it to use on
I'm sure you got some ideas brewing already!
-
Did you have something fun to work on together?
I have one script brewing(for months now), but its more tedious than fun. Math!
Chris
Oh! you beat me to the response...
-
If only the 3D drawing methods would draw something other than solid black fill...
Advertisement