Gets a list of 4 FreCAD.Vector perpendicular to one vecname different from get_fclist_4perp_vecname For example. Gets a ‘random’ perpendicular FreeCAD.Vector Same as get_bolt_end_sep, but when there is a bearing. Get_bolt_bearing_sep(bolt_d, hasnut, lbearing_r)
Since multifuse methods needs to be done by a shape and a list, and usually I have a list that I want to fuse, I make this function to save the inconvenience of doing everytime what I will do here Fuse multiFuse Return 1 if fc1 and fc2 are perpendicular, 0 if they are notįilletchamfer(fco, e_len, name)įillet or chamfer edges of a certain length, on a certain axis and a certain coordinate Very similar to fc_isparal, but in this case the arguments are normalized so, less operations to do. Return 1 if fc1 and fc2 are paralell (colinear), 0 if they are not Just tells if a vector has 2 of the coordinates zero so it is on just a base vector Same as calc_rot but using FreeCAD.Vectors arguments Same as calc_desp_ncen but using FreeCAD.Vectors arguments Having an object with an orientation defined by 2 vectors the vectors a tuples, nor FreeCAD.Vectors use the wrapper fc_calc_rot to have FreeCAD.Vector arguments First vector original direction (x,y,z) is (1,0,0) Second vector original direction (x,y,z) is (0,0,-1) we want to rotate the object in an ortoghonal direction.Ĭompare numbers that are the same but not exactly the sameįc_calc_desp_ncen(Length, Width, Height, …) Similar to calc_rot, but calculates de displacement, when we don’t want to have all of the dimensions centered First vector original direction (x,y,z) is (1,0,0) Second vector original direction (x,y,z) is (0,0,-1) The arguments vec1, vec2 are tuples (x,y,z) but they may be also FreeCAD.Vectors. Ĭalc_desp_ncen(Length, Width, Height, vec1, vec2)
Just creates a freeCAD object of the shape, just to save one lineĪluprof_vec(width, thick, slot, insquare)Ĭreates a wire (shape), that is an approximation of a generic alum profile extrusion. Same as addCyl_pos, but avoiding the creation of many FreeCAD objects Same as addCylHole, but avoiding the creation of many FreeCAD objects NutHole(nut_r, nut_h, hole_h, name)Īdding a Nut hole (hexagonal) with a prism attached to introduce the nut.Ĭreates a piece formed by 2 hollow cylindersĪdd3CylsHole(r1, h1, r2, h2, rring, hring, thick)Ĭreates a piece formed by 2 hollow cylinders, and a ring on the side of the larger cylinderĪddBolt(r_shank, l_bolt, r_head, l_head)Ĭreates the hole for the bolt shank and the head or the nut Tolerances have to be includedĪddBoltNut_hole(r_shank, l_bolt, r_head, …)Ĭreates the hole for the bolt shank, the head and the nut.Īdds a box, centered on the specified axis x and/or y, with its Placement and Rotation at zero.Īdds a box, centered on the specified axis, with its Placement and Rotation at zero.ĪddCylHole(r_ext, r_int, h, name)