Each face is a vector containing the indices (0 based) of 3 or more points from the points vector. faces Vector of faces that collectively enclose the solid. Each face is a vector containing the indices (0 based) of 3 points from the points vector. Vector of faces that collectively enclose the solid. N points are referenced, in the order defined, as 0 to N-1. Each point is in turn a vector,, of its coordinates. Parameters points Vector of 3d points or vertices. Curved surfaces are approximated by a series of flat surfaces. It can be used to create any regular or irregular shape including those with concave as well as convex features. Ī polyhedron is the most general 3D primitive solid. $fa, $fs and $fn must be named parameters. $fn : fixed number of fragments in 360 degrees. $fs : minimum circumferential length of each fragment. center false (default), z ranges from 0 to h true, z ranges from -h/2 to +h/2 $fa : minimum angle (in degrees) of each fragment. Parameters h : height of the cylinder or cone r : radius of cylinder. r1 & d1 define the base width, at, and r2 & d2 define the top width. Using r1 & r2 or d1 & d2 with either value of zero will make a cone shape, a non-zero non-equal value will produce a section of a cone (a Conical Frustum). The 2nd & 3rd positional parameters are r1 & r2, if r, d, d1 or d2 are used they must be named. If a parameter is named, all following parameters must also be named.Ĭylinder(h = height, r1 = BottomRadius, r2 = TopRadius, center = true/false) Parameter names are optional if given in the order shown here. When center is true, it is also centered vertically along the z axis. does not have as many small triangles on the poles of the sphereĬreates a cylinder or cone centered about the z axis. also creates a 2mm high resolution sphere but this one this creates a high resolution sphere with a 2mm radius $fa Fragment angle in degrees $fs Fragment size in mm $fn Resolution default values: sphere() yields: sphere($fn = 0, $fa = 12, $fs = 2, r = 1) For more information on these special variables look at: OpenSCAD_User_Manual/Other_Language_Features d Diameter. The resolution of the sphere is based on the size of the sphere and the $fa, $fs and $fn variables. center false (default), 1st (positive) octant, one corner at (0,0,0) true, cube is centered at (0,0,0) default values: cube() yields: cube(size =, center = false) Ĭreates a sphere at the origin of the coordinate system. Parameters: size single value, cube with all sides this length 3 value array, cube with dimensions x, y and z. Argument names are optional if given in the order shown here.Ĭube(size =, center = true/false) When center is true, the cube is centered on the origin. 4.3 Point repetitions in a polyhedron point listĬreates a cube in the first octant.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |