Go Back   AC3D Forums > Technical > AC3D Developers
Register FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Display Modes
Old 24th December 2013, 05:04 AM   #1
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: Plug-in features for 3-d print modeling

You should probably use this one:

Prototype void add_undoable_change_select_mode(int newmode, char *undotext) // remembers selection and changes to new mode



Quote:
Originally Posted by jentron View Post
Is it possible to switch selection modes from C++? I don't see a prototype in the SDK header but see a few candidate functions in the binary:
  • set_new_select_mode_ui
  • set_new_select_mode
  • add_undoable_change_select_mode
  • set_select_mode_ui %s
  • set_select_mode
I assume I should do something like:
add_undoable_change_select_mode("My Plugin thing");
set_select_mode(SELECT_SURFACE);

But I don't know what the prototype should look like or which of the 4 sets is the 'best' to use?

Thanks,

Ron

(Extrude by normal switches to surface mode and leaves the new surfaces selected. I would like to emulate that. Also, in the watertightness plug-in I would like to switch to surface mode and leave any "bad" surfaces selected.)
Andy is offline   Reply With Quote
Old 24th December 2013, 10:51 AM   #2
Edymnion
Senior Member
Professional user
 
Edymnion's Avatar
 
Join Date: Aug 2005
Posts: 203
Default Re: Plug-in features for 3-d print modeling

Having a plugin that could essentially smoke test a mesh to see if it were ready for 3D printing would definitely be something I'd be interested in.

Something that could determine if a mesh was water tight and then automatically ensure that all of the surfaces were facing out correctly would be very useful indeed.
__________________
It is by caffeine alone that I set my mind in motion. It is by the syrup of cola that thoughts acquire speed, the ears acquire ringing, the ringing becomes a warning. It is by caffeine alone that I set my mind into motion.
Edymnion is offline   Reply With Quote
Old 27th December 2013, 08:02 PM   #3
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Plug-in features for 3-d print modeling

Edymnion,

I have a plug-in now that selects leaky surfaces. When I ran it on the Tardis model you uploaded it pointed out several leaky edges:

The dome light had a few "extra surfaces." I know Shapeways.com doesn't like those.
The right side vertical panels had a vertex that didn't connect to the horizontal panel.
The handles didn't have surfaces on their rears.

If you'd like a copy of the source code, let me know.

Ron
Attached Thumbnails
Click image for larger version

Name:	tardis-1.jpg
Views:	322
Size:	73.2 KB
ID:	2949  

jentron is offline   Reply With Quote
Old 28th December 2013, 02:55 PM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,565
Default Re: Plug-in features for 3-d print modeling

Sounds great - Yes please!
Andy is offline   Reply With Quote
Old 28th December 2013, 04:19 PM   #5
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Plug-in features for 3-d print modeling

https://gitorious.org/ac3d-plugins/watertight

Includes watertight.cpp and a Linux makefile. With thanks to Dennis Hawthorne for selcon.
jentron is offline   Reply With Quote
Old 4th January 2014, 11:25 PM   #6
Edymnion
Senior Member
Professional user
 
Edymnion's Avatar
 
Join Date: Aug 2005
Posts: 203
Default Re: Plug-in features for 3-d print modeling

Excellent, gratci!
__________________
It is by caffeine alone that I set my mind in motion. It is by the syrup of cola that thoughts acquire speed, the ears acquire ringing, the ringing becomes a warning. It is by caffeine alone that I set my mind into motion.
Edymnion is offline   Reply With Quote
Old 28th February 2014, 10:11 AM   #7
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Plug-in features for 3-d print modeling

Andy wrote:
"AC3D 7.2 also includes Ron Jensen's plugin for checking the integrity of an object prior to 3D printing."

I guess I'm (in)famous now.
jentron is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 03:34 PM.


AC3D Forum
(C) Inivis Limited 2020