Home > arte3.2.0 > robots > equipment > tables > create_boxes_howto.m

create_boxes_howto

PURPOSE ^

To create a simple box you can edit directly the STL file.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 To create a simple box you can edit directly the STL file.
 Each of the following structures defines a vector normal to a surface.
 the surface is defined by a triangle with the 3D coordinates defined by
 the vertex keyword.
 
 FIRST TRIANGLE
 facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
     vertex 0 0 0
     vertex 0 1 0
     vertex 1 1 0
 endloop

 SECOND TRIANGLE
 facet normal 0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
   vertex 0 0 0
   vertex 1 0 0
   vertex 1 1 0
 endloop

 You may select the points to complete any simple shape you desire to
 include in the library.

 Next, an example of a typical STL file.

 solid Created by Arturo Gil 18-Dec-2012 13:02:53
 facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
 vertex 0 0 0
 vertex 0 1 0
 vertex 1 1 0
 endloop
 endfacet
 facet normal 0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
 vertex 0 0 0
 vertex 1 0 0
 vertex 1 1 0
 endloop
 endfacet
 facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
 vertex 0 0 0
 vertex 0 1 0
 vertex 0 1 1
 endloop
 outer loop
 vertex 0 0 0
 vertex 0 0 1
 vertex 0 1 1
 endloop
 endfacet
 outer loop
 vertex 0 0 0
 vertex 0 0 1
 vertex 1 0 1
 endloop
 outer loop
 vertex 0 0 0
 vertex 1 0 0
 vertex 1 0 1
 endloop
 endfacet
 facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
 vertex 1 0 1
 vertex 1 0 0
 vertex 1 1 0
 endloop
 outer loop
 vertex 1 1 0
 vertex 1 1 1
 vertex 1 0 1
 endloop
 endfacet
 facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
 vertex 1 1 1
 vertex 0 1 0
 vertex 1 1 0
 endloop
 outer loop
 vertex 1 1 1
 vertex 0 1 1
 vertex 0 1 0
 endloop
 endfacet
 facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
 outer loop
 vertex 0 0 1
 vertex 1 0 1
 vertex 1 1 1
 endloop
 outer loop
 vertex 0 0 1
 vertex 1 1 1
 vertex 0 1 1
 endloop
 endfacet
 endsolid Created by surf2stl.m 18-Dec-2012 13:02:53

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % To create a simple box you can edit directly the STL file.
0002 % Each of the following structures defines a vector normal to a surface.
0003 % the surface is defined by a triangle with the 3D coordinates defined by
0004 % the vertex keyword.
0005 %
0006 % FIRST TRIANGLE
0007 % facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
0008 % outer loop
0009 %     vertex 0 0 0
0010 %     vertex 0 1 0
0011 %     vertex 1 1 0
0012 % endloop
0013 %
0014 % SECOND TRIANGLE
0015 % facet normal 0.0000000E+00 0.0000000E+00 1.0000000E+00
0016 % outer loop
0017 %   vertex 0 0 0
0018 %   vertex 1 0 0
0019 %   vertex 1 1 0
0020 % endloop
0021 %
0022 % You may select the points to complete any simple shape you desire to
0023 % include in the library.
0024 %
0025 % Next, an example of a typical STL file.
0026 %
0027 % solid Created by Arturo Gil 18-Dec-2012 13:02:53
0028 % facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
0029 % outer loop
0030 % vertex 0 0 0
0031 % vertex 0 1 0
0032 % vertex 1 1 0
0033 % endloop
0034 % endfacet
0035 % facet normal 0.0000000E+00 0.0000000E+00 1.0000000E+00
0036 % outer loop
0037 % vertex 0 0 0
0038 % vertex 1 0 0
0039 % vertex 1 1 0
0040 % endloop
0041 % endfacet
0042 % facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
0043 % outer loop
0044 % vertex 0 0 0
0045 % vertex 0 1 0
0046 % vertex 0 1 1
0047 % endloop
0048 % outer loop
0049 % vertex 0 0 0
0050 % vertex 0 0 1
0051 % vertex 0 1 1
0052 % endloop
0053 % endfacet
0054 % outer loop
0055 % vertex 0 0 0
0056 % vertex 0 0 1
0057 % vertex 1 0 1
0058 % endloop
0059 % outer loop
0060 % vertex 0 0 0
0061 % vertex 1 0 0
0062 % vertex 1 0 1
0063 % endloop
0064 % endfacet
0065 % facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
0066 % outer loop
0067 % vertex 1 0 1
0068 % vertex 1 0 0
0069 % vertex 1 1 0
0070 % endloop
0071 % outer loop
0072 % vertex 1 1 0
0073 % vertex 1 1 1
0074 % vertex 1 0 1
0075 % endloop
0076 % endfacet
0077 % facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
0078 % outer loop
0079 % vertex 1 1 1
0080 % vertex 0 1 0
0081 % vertex 1 1 0
0082 % endloop
0083 % outer loop
0084 % vertex 1 1 1
0085 % vertex 0 1 1
0086 % vertex 0 1 0
0087 % endloop
0088 % endfacet
0089 % facet normal -0.0000000E+00 0.0000000E+00 1.0000000E+00
0090 % outer loop
0091 % vertex 0 0 1
0092 % vertex 1 0 1
0093 % vertex 1 1 1
0094 % endloop
0095 % outer loop
0096 % vertex 0 0 1
0097 % vertex 1 1 1
0098 % vertex 0 1 1
0099 % endloop
0100 % endfacet
0101 % endsolid Created by surf2stl.m 18-Dec-2012 13:02:53

Generated on Fri 03-Jan-2014 12:20:01 by m2html © 2005