though there’s nothing wrong with what you’ve done but with a modal dialog box you would usually just grab the settings on the OK/Export button press …
you need to add the IDOK (or what ever the ID is on the Export button) case to the loword wparam switch and in that set your global variables from the…
there probably are no pro’s or con’s as such just coding choices and a few bytes here and there on the stack. I added the code as a copy and paste and…
try something like… static INT_PTR CALLBACK ROFFexportOptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { static ROFFexport *e…
you need to add a WM_COMMAND case at the same level as the WM_INITDIALOG then test the low word of the wParam of dialog proc to catch user interaction…
delete objects a = box width:10 length:10 height:10 a.pivot = a.min a.pos = [0,0,0] tm = matrixfromnormal (normalize (a.max – a.min)) a.transform *= i…
dot product is your friend here. you can generate the plane normals from the known box positions then test each against the unit axis to derive the o…
mxs doesn’t see the array items as floats it see’s them value* (pointers to values) it then converts the value to type float if it can. That’s why you…
It’s the elephant in the room trying not to be noticed by hiding behind you. We’ve all been there !
i’m sure you would have got there in the end myArray[4] == myArray[3] myArray[2] == myArray[3] myArray[2] == myArray[4] should produce fal…
you can write the entire mnmesh vert array in one call but you would have to read it back as (int, Point3, int) but it will be slower as it’s a larger…
if you really want the fastest possible way to export mesh verts you’d be hard pressed to beat… fwrite(mesh.verts, sizeof(Point3), mesh.numVerts, fst…
Btw, do you have any other comments/advices for the code that I’ve uploaded? sorry it’s it’s in the weirdo language invented by micro$oft which mean…
ObjectWrapper is only a “convenience” class to save you from having to know the ins and outs and nuances of mesh, mnmesh and patchmesh. If speed is re…
The weird thing about the arrays though, it was that I did run into an error and that printed results seemed reasonable. code like that would usuall…