Wednesday, December 22, 2010

MATLAB Project

Here is the source of Drawing N Cubes function, written in MATLAB 2008. Enjoy the code and try to optimize it.



function lego(w,r,n)
%%

clf
s=0;
for i=1:n
s=s+w/2;
cubeplot(0,0,s,w)
s=s+w/2;
w=w*r;
end
view(45,30)
%%
function cubeplot(a,b,c,l)
hold on
[x,y,z] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+b,(l/2)+b],l/2+c);
surf(x,y,z)
[x,y,z] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+b,(l/2)+b],-(l/2)+c);
surf(x,y,z)
[z,y,x] = meshgrid([-(l/2)+c,(l/2)+c],[-(l/2)+b,(l/2)+b],l/2+a);
surf(x,y,z)
[z,y,x] = meshgrid([-(l/2)+c,(l/2)+c],[-(l/2)+b,(l/2)+b],-(l/2)+a);
surf(x,y,z)
[x,z,y] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+c,(l/2)+c],l/2+b);
surf(x,y,z)
[x,z,y] = meshgrid([-(l/2)+a,(l/2)+a],[-(l/2)+c,(l/2)+c],-(l/2)+b);
surf(x,y,z)
end

end

Saturday, September 18, 2010

TJ Notepad

TJNotepad is a simple and open source java notepad for mobile phones that can open any kind of file in text mode. It is useful to view files using text reading stream.



54 KB MIDP-2.0 and CLDC-1.1

4 KB Sun NetBeans 6.7.1

Friday, September 10, 2010

TomyadAuto® Fedora Concept

Fedora is based on a new way of sketching and designing using SolidWorks. New kinds of material property are used for rendering.







Tuesday, August 24, 2010

Using SolidWorks to design an hourglass


Designing an hourglass by Solidworks is so easy:
  1. Create a 2D Sketch on Front-plane.
  2. Start drawing a glass profile on the plane.
  3. Use Revolve Extrude to create a glass.
  4. Then make a new 2D Sketch on Top-plane for drawing a lid.
  5. Draw a circle on the Top-plane Sketch.
  6. Create the lid via Extruding the circle.
  7. After that use Mirror feature to make the copy the body in other side.
  8. Now you can create a support.
  9. To have three supports, use Circular pattern.
  10. Finally filleting edges.
You can download hourglass sample file and open it by SolidWorks 2009 or higher version and then viewing tree-view to see the design elements and their structure:

Download Hourglass Sample File
.Zip = SolidWorks 2009 SLDPRT file (312 KB)

Wednesday, July 14, 2010

TomyadAuto® Jenik Concept

TomyadAuto® Jenik is a new concept car that has interior and exterior design. Many SolidWorks boundary features are used for designing.

Tuesday, July 13, 2010

TDominoes 1.0.0.0 Beta


This is a new open-source domino game that you can enjoy playing it in your free times. TDominoes is portable software and it is easy to play.

Operating System for executing the application:
  • Microsoft Windows XP (and higher version of it) + .Net Framework 3.5
  • Windows 7 (32 bit & 64 bit)
  • All Linux based OS + Mono Project


Download TDominoes 1.0.0.0 Beta
.zip (144 KB) contains .Exe portable application and License file

Download TDominoes VB.net Source Code
.zip (154 KB) contains VB.net 2008 project and License file


Please read the License file before using the software or its source.

Text Color

Sunday, June 6, 2010

Daylight Simulation in MATLAB 2008

By putting the source below to a M-File and compile it, you will see a virtual daylight on Figure window:
clear all
clc
clf
dt=linspace(0,pi,120);
for i=1:120
surfl(peaks)
shading interp;
for j=1:round(abs( sin(dt(i))*20))
light('Position',[cos(dt(i))*50 0 sin(dt(i))*10],'Style','infinite');
end
if i<20
title('Hello World')
elseif i>20 && i<50
title('Morning')
elseif i>50 && i<70
title('Noon')
elseif i>70 && i<100
title('Afternoon')
else
title('Evening')
end
m(i)=getframe();
end
title('Thats a simple day!')
movie(m,1,12)

Friday, April 2, 2010

TomyadAuto® Fly, concept F1 car




You can download the Fly COSMOSFloWorks CFD document from here.

Saturday, March 27, 2010

TomyadAuto® 360 3G Concept

360 3G is an assembly based design. Main parts of the car designed separately like rims, engine, intercooler, ECU & etc; and then all parts assembled on a platform.






Wednesday, February 17, 2010

TomyadAuto® Car Inside Design





In this design, all using material are defined. Many sketches and extrudes merged together for designing. Finally using Photowork for high quality rendering.

TomyadAuto® Penelopi Concept





This is Penelopi. A concept car that designed by SolidWorks.


Monday, January 18, 2010

TomyadAuto® Cyrus Concept

This concept coupe named Cyrus designed by SolidWorks and render with Photowork.

Enlarge

Enlarge

Enlarge

Enlarge

Enlarge


Enlarge