CGTalk > Technical > Graphics Programming
Login register
reply share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 07-06-2014, 06:57 AM   #1
carmenp92
New Member
portfolio
Drummonds%252C%2BTN, United%2BStates
 
Join Date: Jul 2014
Posts: 2
Lightbulb Help on Live Sectioning- batch processing script.

Hello Everyone,

I am an medical student with little knowledge of C++ & 0 knowledge of 3d softwares . So experts & gurus please bear with me

I need to know how to:-
convert STL file (or any other 3d format suited for this purpose) into a
series of cross-section images, as in the case of live-sectioning, using scripting/programming.

To better understand my needs, take a look at this image .
Let us assume a vector V, perpendicular to which is the sectioning plane we need.
"v_co-ordinate" is the z co-ordinate of tail of V vector, origin by default
"v_angle" is angle of V from xy plane, 90 degree by default
"v_magnitude" is the distance along V vector at which the section plane must be plotted/obtained/read

I need guidance for writing something like this-

Code:
int split_3d_object(char *fileName, float v_magnitude, float v_co-ordinate=0, float v_angle=90) { //fileName is name of source STL file /* code to get a single cross section (in .jpg or any other format) I can apply for loop, so don't bother with that :P */ return 0; }


More Details:-
The output image should look something like this .
but it is extremely important that user can define orientation of sectioning plane.

I researched a little more & learned ways to automate live sectioning in CATIA, but I need to
do it via script for implementation purposes.
I am open to any programming language & any 3d software for getting this done.
 
Old 07-12-2014, 05:08 PM   #2
carmenp92
New Member
portfolio
Drummonds%252C%2BTN, United%2BStates
 
Join Date: Jul 2014
Posts: 2
Red face Any Help Would Be Greatly Appreciated . . .

Someone please suggest some ideas or a different approach or anything.
 
Old 07-17-2014, 11:10 PM   #3
Sanfu
New Member
 
Join Date: Nov 2003
Posts: 16
Check out OpenSCAD, it should be able to do what you want.

http://www.openscad.org/

Cheers,

-K
 
Old 07-18-2014, 07:04 PM   #4
P4VV37
PRO
portfolio
Pawe%25C5%2582 Kowalski
Krak%25C3%25B3w, Poland
 
Join Date: Nov 2007
Posts: 60
Maybe You can do it in 3ds max and maxscript, for example with a use of slice or boolean?
Or simmilar tool in Maya, or any other software
 
reply share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:58 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.