Klunk1
@klunk1
New Member
Joined: Feb 14, 2024
Topics: 34 / Replies: 650
Reply
RE: Question: On Creating Exporter Dialog

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 …

12 years ago
Forum
Reply
RE: Question: On Creating Exporter Dialog

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…

12 years ago
Forum
Reply
RE: Question: On Creating Exporter Dialog

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…

12 years ago
Forum
Reply
RE: Question: On Creating Exporter Dialog

try something like… static INT_PTR CALLBACK ROFFexportOptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { static ROFFexport *e…

12 years ago
Forum
Reply
RE: Question: On Creating Exporter Dialog

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…

12 years ago
Forum
Reply
RE: BBox Question! Please HELP!!!

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…

12 years ago
Forum
Reply
RE: BBox Question! Please HELP!!!

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…

12 years ago
Forum
Reply
RE: Finding instanced values in Arrays…

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…

12 years ago
Forum
Reply
RE: Finding instanced values in Arrays…

It’s the elephant in the room trying not to be noticed by hiding behind you. We’ve all been there !

12 years ago
Forum
Reply
RE: Finding instanced values in Arrays…

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…

12 years ago
Forum
Reply
RE: getVert using MXS, dotnet and C#

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…

12 years ago
Forum
Reply
RE: getVert using MXS, dotnet and C#

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…

12 years ago
Forum
Reply
RE: getVert using MXS, dotnet and C#

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…

12 years ago
Forum
Reply
RE: getVert using MXS, dotnet and C#

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…

12 years ago
Forum
Reply
RE: getVert using MXS, dotnet and C#

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…

12 years ago
Forum
Page 11 / 46