I do all of my modelling using scripts, so that I can put in exact dimensions and placements, and keep trying until I get it right. Scripting also lets me use trigonometry when locating the occasional component that is not aligned on all three axes. Herein lies the challenge.
My part is at a 30° angle, but because of where my reference point is located, I'm setting the yaw to 210°, not 30°. Trig tells me that if I want the left vertex to be located at (0,0,0), I should locate the anchor point at (cos30°× partwidth, sin30°× partwidth, 0). When I do that, though, the left vertex is NOT (0,0,0), but a smidge off — more than could be accounted for by rounding (and since I use a script, my placement parameters are many decimal places long).
The plans still come out much better than my workproduct, but I'm wondering if anyone else has come across a situation where math and a FreeCAD vertex don't seem to jibe. If anyone is tempted to reply, let me thank you in advance. Thanks.
Bruce Arnold
Mt Wilson, New South Wales AUSTRALIA
I'm a newbie here, so please be gentle if I'm not au fait with all of the protocols. But ...
.png and . FCStd files attached
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/Australia (en_AU)