Using these 2 values we can draw dotted lines as well. Put another pointtype() command without any valuesĭash(x1, y1, x2, y2, dashLength, dashGapLength)Įxample:- dash(3,4,7,8,0.5,0.6) Draws a dashed line, theĥth argument controls the dash length and 0.6 (the last value) controls the gap. Which controls how much the objects should fade in or outĮxample:- pointtype('cross') Changes the point style from 'sphere' to 'cross'.Īny point command after this pointtype command will render a cross, if we want to go back to 'sphere' just For exampleĪ new polygon will be created by using points 2,4,6,7 and points from the 'A' part commands that follow themĮxample:- fade(a,D,E, 0.4) The fade factor(last) value which must be between 0 to 1 To build further complex shape used for tessllations. The returned part which is stored in 'A' can then be used You can only give either 1 or 2 as part index. Part(a,intersect(a,b,1), point(2,3), 2) The last value 2 extracts the second part. PartIndex (either 1 or 2) and the point to get the desired part as shown here. The part command extracts 2 shapes, so we can specify an optional Points must be on one of the lines of the polygon. The shape (ie if it is arc, then the point must be on arc's perimeter, the same is true for polygon, the The 2 points given after the shape needs to be on The shape 'a' in the example refers to a polygon or line or arc. Part(shape to extract from, 2 points on shape, optional part Index)Ī=part(a,intersect(a,b,1), point(2,3)) where A is the label of the shape to take part from. Traces the curve passing through the given points. The command accepts any number of shapes. A value of 0 places it at A, 1 at B and 0.5 in the middle.Įxample:- polygon(A, B, C) draws a triangle where A, B, C are pointsĮxample:- findangle(A, B) finds the angle between two lines A, B or a polygon findangle(C) (C is the label of polygon, in this case the method returns the first angle)įills the interior of shapes A,B.The shapes can be an arc, polygon or another fill. Parallel(line, passThroughPoint, length=10)Įxample:- parallel(line(1, 2, 3, 4), point(1, 2))Įxample:- angle(A, B, 45, 1) The two points A and B defines the base line.The ratio is an optional parameter which controls the position of the protractor. The last optional parameter of perp command is the length of the perpendicular line which defaults to 10 To copy a line, give the first parameter as line or two points as shown here arc(point1, point2, originPoint, angleFrom, upto)Įxample:- A=perp(line(1, 2, 3, 4), point(1, 2)) draws a perpendicular line to a given line(1, 2, 3, 4) passing through point(1, 2). A negative value for "upto" parameter will move clockwise. Length can be optionally given as line(A, B, 3) where 3 is length of segment.Īrc(originPoint, radius, angleFrom, upto)Įxample:- arc(point(2, 2), 3, 40, 20)Uses point(2, 2) as origin, 3 as radius and starts the arc from 40 degrees adding another 20 degree in an anticlockwise direction. Loose leg wing dividers also provide stepping-off repetitive measurements with particular accuracy.Example:- point(3, 4) or A=point(3, 4) where A is the label.Įxample:- line(0,0,-2,5) or C=line(A, B) where A, B are point labels. These dividers are made of all forged steel and used to scribe circles. Carpenters use the scribe compass to scribe a circle instead of drawing it. This type of compass is the most simple by form. There are a couple of variants of drawing compasses.Ī beam compass is made of brass or wooden beam and is used for drawing circles larger than a regular compass. The measurement can be done by measuring how many times the fixed compass can fit in some distance. Those compasses are called dividing compasses, with two needles instead of one. If the hinge is moved, the radius of a circle can be adjusted.Ĭompasses can also be used for measuring distances on maps. A drawing compass can draw circles on a specific material (wood, metal, plastic…) by putting a needle in a circle's center that should be drawn and rotating it around while keeping the same angle on the hinge.
0 Comments
Leave a Reply. |