draw_from_triangle.inx revision e9b6af083e34e2397a8ddbe9781920733d09d151
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <dependency type="executable" location="extensions">draw_from_triangle.py</dependency>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <dependency type="executable" location="extensions">inkex.py</dependency>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="circumcircle" type="boolean" _gui-text="Circumcircle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="circumcentre" type="boolean" _gui-text="Circumcentre"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="incircle" type="boolean" _gui-text="Incircle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="incentre" type="boolean" _gui-text="Incentre"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="contact_tri" type="boolean" _gui-text="Contact Triangle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="excircles" type="boolean" _gui-text="Excircles"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="excentres" type="boolean" _gui-text="Excentres"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="extouch_tri" type="boolean" _gui-text="Extouch Triangle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="excentral_tri" type="boolean" _gui-text="Excentral Triangle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="orthocentre" type="boolean" _gui-text="Orthocentre"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="orthic_tri" type="boolean" _gui-text="Orthic Triangle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="altitudes" type="boolean" _gui-text="Altitudes"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="anglebisectors" type="boolean" _gui-text="Angle Bisectors"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="centroid" type="boolean" _gui-text="Centroid"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="ninepointcentre" type="boolean" _gui-text="Nine-Point Centre"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="ninepointcircle" type="boolean" _gui-text="Nine-Point Circle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="symmedians" type="boolean" _gui-text="Symmedians"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="sym_point" type="boolean" _gui-text="Symmedian Point"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="sym_tri" type="boolean" _gui-text="Symmedial Triangle"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="gergonne_pt" type="boolean" _gui-text="Gergonne Point"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="nagel_pt" type="boolean" _gui-text="Nagel Point"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <page name="Custom" _gui-text="Custom Points and Options">
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="mode" type="optiongroup" _gui-text="Custom Point Specified By:">
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <_option value="trilin">Trilinear Coordinates</_option>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="cust_str" type="string" _gui-text="Point At">cos(a_a):cos(a_b):cos(a_c)</param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="cust_pt" type="boolean" _gui-text="Draw Marker At This Point"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="cust_radius" type="boolean" _gui-text="Draw Circle About This Point"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="radius" type="string" _gui-text="Radius / px">s_a*s_b*s_c/(4*area)</param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="isogonal_conj" type="boolean" _gui-text="Draw Isogonal Conjugate"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="isotomic_conj" type="boolean" _gui-text="Draw Isotomic Conjugate"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="report" type="boolean" _gui-text="Report this triangle's properties"></param>
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <param name="instructions" type="description">This extension draws constructions about a triangle defined by the first 3 nodes of a selected path. You may select one of preset objects or create your own ones.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldAll units are the Inkscape's pixel unit. Angles are all in radians.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldYou can specify a point by trilinear coordinates or by a triangle centre function.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldEnter as functions of the side length or angles.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldTrilinear elements should be separated by a colon: ':'.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldSide lengths are represented as 's_a', 's_b' and 's_c'.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldAngles corresponding to these are 'a_a', 'a_b', and 'a_c'.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldYou can also use the semi-perimeter and area of the triangle as constants. Write 'area' or 'semiperim' for these.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldYou can use any standard Python math function:
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gouldceil(x); fabs(x); floor(x); fmod(x,y); frexp(x); ldexp(x,i);
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gouldmodf(x); exp(x); log(x [, base]); log10(x); pow(x,y); sqrt(x);
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gouldacos(x); asin(x); atan(x); atan2(y,x); hypot(x,y);
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gouldcos(x); sin(x); tan(x); degrees(x); radians(x);
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gouldcosh(x); sinh(x); tanh(x)
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldAlso available are the inverse trigonometric functions:
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gouldsec(x); csc(x); cot(x)
e9b6af083e34e2397a8ddbe9781920733d09d151Ted GouldYou can specify the radius of a circle about a custom point using an formula, which may also contain the side lengths, angles, etc. You can also plot the isogonal and isotomic conjugate of the point. Be aware that this may cause a divide-by-zero error for certain points.
e9b6af083e34e2397a8ddbe9781920733d09d151Ted Gould <command reldir="extensions" interpreter="python">draw_from_triangle.py</command>