Go Back   Home > Forums > Design & Build > Software Tools
Home Forums Rules Articles Store Gallery Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Software Tools SPICE, PCB CAD, speaker design and measurement software, calculators

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 7th March 2011, 08:00 AM   #1
diyAudio Member
 
Greg Erskine's Avatar
 
Join Date: Jan 2002
Location: Sydney/Australia
Default Eagle3D model for a Silver Mica cap

Hi,

I am having trouble finding (or designing) a Eagle3D/POV model for a Silver Mica cap. The problem is the shape of the Silver Mica cap is a complex surface and I am only capable of simple boxes or cylinders.

I have looked numerous times on the web for a suitable model but can't find anything to I can use.

The POV's Complex Blob Construct is probably to way to go but I am having difficulty getting reasonable results.

Any POV experts out there that can help?

regards
__________________
Greg Erskine
  Reply With Quote
Old 9th March 2011, 11:37 AM   #2
marce is offline marce  United Kingdom
diyAudio Member
 
Join Date: Jun 2007
Location: Blackburn, Lancs
What part number for the cap, and can Eagle import STEP, STL or similar?
  Reply With Quote
Old 10th March 2011, 04:18 AM   #3
diyAudio Member
 
Greg Erskine's Avatar
 
Join Date: Jan 2002
Location: Sydney/Australia
Quote:
Originally Posted by marce View Post
What part number for the cap, and can Eagle import STEP, STL or similar?
Hi marce,

Thanks for responding.

Here is the datasheet for a typical Silver Mica cap.

http://www.cde.com/catalogs/STD-DIPPED.pdf

I'll have to do some research on STEP or STL.

It's really is a POV issue, rather than an Eagle issue.

Eagle3D (not part of Eagle) is just a ULP (user language program) that converts an Eagle PCB into a 3D POV model. The problem is I don't have the macro for a Silver Mica Cap. At the moment I just output the Silver Mica Cap as a ceramic cap. For example C4 in this picutre: MJL21193/4 for eagle

regards
__________________
Greg Erskine
  Reply With Quote
Old 12th March 2011, 10:49 AM   #4
marce is offline marce  United Kingdom
diyAudio Member
 
Join Date: Jun 2007
Location: Blackburn, Lancs
1st attempt, based on the CD15CD010DO3F part. It is a parametric model so I can scale it in SolidWorks. Dont know much (well anything!) about Eagle/POV, but most 3D software can import STEP format. Wouldn't mind more info on POV.
Had to try and guess overall shape from data sheet! and a bit rusty at modeling in 3D these days so it looks a bit lumpy, but can fine tune it.
Attached Images
File Type: jpg cap1.jpg (61.6 KB, 112 views)
Attached Files
File Type: zip mica-cap.zip (46.1 KB, 18 views)
  Reply With Quote
Old 12th March 2011, 07:53 PM   #5
diyAudio Member
 
Greg Erskine's Avatar
 
Join Date: Jan 2002
Location: Sydney/Australia
hi marce,

Thanks, that looks more than satisfactory for my use.

Now to get it into a format I can use.

POV is more of a ray tracing program than a 3D modeller. Here's some info:

POV-Ray - The Persistence of Vision Raytracer

Looks like POV can accept STL but not STEP files.

POV-Ray: Newsgroups: povray.advanced-users: Conversion from STEP to Pov

After a bit of reading about blobs it seems they might be a bit buggy so I am a little concenrned that a conversion process might present more problems. Then again the conversion process may not use blobs.

Here's the limit of my 3D capabilities:

Code:
/**********************************************************************
* TO3P package
* Written by: Greg Erskine
* Date: 1 May 2005
* Version 0.02
**********************************************************************/
#macro USER_TO3P(value,H_V)
    // Values taken from Motorola Semiconductor Technical Data sheet
    // for the MJL21193/MJL21194 in the form max - (max - min) / 2
 
    #local A = 29    - ((29.0  - 28.0)  / 2);
    #local B = 20.3  - ((20.3  - 19.3)  / 2);
    #local C =  5.3  - (( 5.3  -  4.7)  / 2);
    #local D =  1.48 - (( 1.48 -  0.93) / 2);
    #local E =  2.1  - (( 2.1  -  1.9)  / 2);
    #local F =  2.4  - (( 2.4  -  2.2)  / 2);
    #local G =  5.45;
    #local H =  3.0  - (( 3.0  -  2.6)  / 2);
    #local J =  0.78 - (( 0.78 -  0.43) / 2);
    #local K = 18.8  - ((18.8  - 17.6)  / 2);
    #local L = 11.4  - ((11.4  - 11.0)  / 2);
    #local Nmax = 4.75;
    #local Nmin = 3.95;
    #local P =  2.6  - (( 2.6  -  2.2)  / 2);
    #local Q =  3.5  - (( 3.5  -  3.1)  / 2);
    #local R =  2.35 - (( 2.35 -  2.15) / 2);
    #local U =  6.5  - (( 6.5  -  6.1)  / 2);
    #local W =  3.2  - (( 3.2  -  2.8)  / 2);
    #macro TextWidth( Text, Font, Size )
    #local T1 = text { ttf Font concat("|",Text,"|") 1 0 scale <Size, Size, 1> }
   #local T2 = text { ttf Font "||" 1 0 scale <Size, Size, 1> }
 
 ((max_extent(T1).x - min_extent(T1).x) - (max_extent(T2).x - min_extent(T2).x))
    #end
 
    // Plastic package with value engraved
    union {
      object {
        difference {
          box { <-B/2,0,0> <B/2,C,A-P> }
          // hole
          cylinder { <0,-1,A-P-U> <0,C+2,A-P-U> Q/2 }
          // half holes on sides
          cone { <-B/2,E,A-P-U> Nmax/2 <-B/2,E+C,A-P-U> Nmin/2 }
          cone { < B/2,E,A-P-U> Nmax/2 < B/2,E+C,A-P-U> Nmin/2 }
          cone { <-B/2,E,L>     R/2    <-B/2,E+C,L>     R/2-0.2 }
          cone { < B/2,E,L>     R/2    < B/2,E+C,L>     R/2-0.2 }
          // dimples
          cone { < B/4,C-1.2,A-P-U> Nmax/5 < B/4,C+1,A-P-U> Nmin/5 }
          cone { <-B/4,C-1.2,A-P-U> Nmax/5 <-B/4,C+1,A-P-U> Nmin/5 }
          cone { < 0,C-1.2,L/2> Nmax/5 < 0,C+1,L/2> Nmin/5 }
 
          #local Twidth = TextWidth( value, besch_font, 2 );
          text { ttf besch_font value 1, 0 pigment { White } scale <2,2,1> rotate 90*x translate <-Twidth/2,5.95,L> }
        }
      texture {pigment {Gray20} }
      finish {phong 0.1 phong_size 25 }
    }
    // Pins
    object {
        #local X = 2.75;    // X + P = length pin before bend 
        union {
          box { <-W/2,H,0>    <W/2,H+J,-P> }
          box { <-D/2,H,-P>   <D/2,H+J,-P-X> }
          box { <-D/2,H,-P-X> <D/2,-K+X,-P-X+J> } 
 
          box { <-G-F/2,H,0>    <-G+F/2,H+J,-P> }
          box { <-G-D/2,H,-P>   <-G+D/2,H+J,-P-X> }
          box { <-G-D/2,H,-P-X> <-G+D/2,-K+X,-P-X+J> }
 
          box { <G+F/2,H,0>    <G-F/2,H+J,-P> }
          box { <G+D/2,H,-P>   <G-D/2,H+J,-P-X> }
          box { <G+D/2,H,-P-X> <G-D/2,-K+X,-P-X+J> }
        }
        texture { col_silver }
        finish { phong 0.5 }
      }
    }
#end
#macro USER_TO3P_V(value)
    object{USER_TO3P(value,0)}
#end
#macro USER_TO3P_H(value)
    object{USER_TO3P(value,1)}
#end
Which produces:
Attached Images
File Type: png user.png (43.4 KB, 109 views)
__________________
Greg Erskine
  Reply With Quote
Old 13th March 2011, 10:06 AM   #6
marce is offline marce  United Kingdom
diyAudio Member
 
Join Date: Jun 2007
Location: Blackburn, Lancs
Hi Greg,
an STL version, and a screen shot of the STL settings.
I'm glad I've got Solid Works its much easier, I also use the IDF interface to get from the ECAD package (Cadstar) to the MCAD package (SW).
Glad to say I've developed a phobia for programming these days (as I've got older my patience has reached zero) the last I did being some Lisp for some Autocad routines.
Have Fun.
Attached Images
File Type: jpg STL-settings.jpg (92.1 KB, 98 views)
Attached Files
File Type: zip mica-cap-STL.zip (254.7 KB, 24 views)
  Reply With Quote
Old 18th March 2011, 06:45 AM   #7
diyAudio Member
 
Greg Erskine's Avatar
 
Join Date: Jan 2002
Location: Sydney/Australia
hi marce,

Thanks again for your time.

Converting the STL file to POV ended up being very simple and the result is shown in the attached image. The mesh file for this one object ended up being nearly 1 meg., at over 42,000 lines. Surprising... raytracing this file took only a couple of seconds.

regards
Attached Images
File Type: png mica.png (26.8 KB, 83 views)
__________________
Greg Erskine
  Reply With Quote
Old 21st March 2011, 12:24 PM   #8
marce is offline marce  United Kingdom
diyAudio Member
 
Join Date: Jun 2007
Location: Blackburn, Lancs
Glad to help, if you want anymore funky models let us know.
Marc
  Reply With Quote
Old 14th August 2011, 04:14 PM   #9
diyAudio Member
 
Join Date: Aug 2011
hallo sir,
Please help me to create a video with pov-ray and eagle 3d.....
  Reply With Quote

Reply


Hide this!Advertise here!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
0.1uf silver mica welborne DIY HiFi Supply 0 17th November 2010 07:28 PM
Russian Silver Mica Golana Parts 0 10th March 2010 11:09 AM
silver mica caps doktor Parts 14 26th April 2006 01:08 AM
Is this a silver mica capacitor? klitgt Parts 3 29th November 2004 01:30 AM
silver mica or polystyrene janey Pass Labs 11 6th February 2003 11:45 PM


New To Site? Need Help?

All times are GMT. The time now is 08:42 PM.

Page generated in 0.10399 seconds (77.77% PHP - 22.23% MySQL) with 11 queries

Copyright ©1999-2012 diyAudio