Difference between revisions of "Annot"

From BRL-CAD
(Created page with "category:tutorials Annotations are currently created through the in command. Support for the annotation editor is yet to be provided. This primitive allows users to label...")
 
(Removed grammatical errors)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[category:tutorials]]
 
[[category:tutorials]]
 
Annotations are currently created through the in command. Support for the annotation editor is yet to be provided. This primitive allows users to label models in the wireframe view.
 
  
 
{|align="right"
 
{|align="right"
 
  |[[Image:Example_annot.png|thumb|256px|Example annot object created with the in command]]
 
  |[[Image:Example_annot.png|thumb|256px|Example annot object created with the in command]]
 
  |}
 
  |}
 +
 +
 +
Annotations are currently created through the "in" command. Support for the annotation editor is yet to be provided. This primitive allows users to label models in the wireframe view. The primitive is aimed to be in the plane of the screen always, irrespective of the rotations. The annot object shown has the name annot_test. "get" and "l"(ell) commands give an overview of the structure. The input format can also be found below. Note that the second point that is entered by the user is relative to the first point. (This is done to make it easier, when the editor comes into place)
 +
 +
<br style="clear: both" />
 +
 +
<pre>
 +
mged> in
 +
Enter name of solid: annot_test
 +
Enter solid type: annot
 +
Enter the point to be annotated: 0
 +
Enter Y: 0
 +
Enter Z: 0
 +
Enter the text label: (0,0,0)
 +
Enter X,Y for the text placement: 3
 +
Enter Y: 3
 +
Enter the relative vertical position(1->bottom, 2->middle, 3->top): 3
 +
Enter the relative horizontal position(1->right, 2->center, 3->left): 1
 +
annot_test
 +
 +
</pre>
 +
 +
Below is the get command
 +
 +
<pre>
 +
mged> get annot_test
 +
</pre>
 +
result:
 +
 +
<pre>
 +
annotation
 +
V {0 0 0}
 +
VL { {3 3} {0 0} }
 +
SL { { line S 0 E 1 }
 +
{ label (0,0,0) ref_pt 0 position top right } }
 +
</pre>
 +
 +
<br style="clear: both" />
 +
The l command (ell).
 +
 +
<pre>
 +
mged> l annot_test
 +
</pre>
 +
 +
<pre>
 +
annot_test:  2D annotations (annotation)
 +
V = (0 0 0)
 +
2 vertices
 +
Vertices:
 +
0-(3 3) 1-(0 0)
 +
 +
Ant:
 +
Line segment (3 3) <-> (0 0)
 +
Reference point (3 3)
 +
Relative position: top right
 +
 +
Label text: (0,0,0)
 +
</pre>
 +
 +
What we currently have is a foundation for the future work. Still, there are plenty of things to be done that will be accomplished with time.

Latest revision as of 23:03, 12 June 2021


Example annot object created with the in command


Annotations are currently created through the "in" command. Support for the annotation editor is yet to be provided. This primitive allows users to label models in the wireframe view. The primitive is aimed to be in the plane of the screen always, irrespective of the rotations. The annot object shown has the name annot_test. "get" and "l"(ell) commands give an overview of the structure. The input format can also be found below. Note that the second point that is entered by the user is relative to the first point. (This is done to make it easier, when the editor comes into place)


mged> in
Enter name of solid: annot_test
Enter solid type: annot
Enter the point to be annotated: 0
Enter Y: 0
Enter Z: 0
Enter the text label: (0,0,0)
Enter X,Y for the text placement: 3
Enter Y: 3
Enter the relative vertical position(1->bottom, 2->middle, 3->top): 3
Enter the relative horizontal position(1->right, 2->center, 3->left): 1
annot_test

Below is the get command

mged> get annot_test

result:

annotation
 V {0 0 0}
 VL { {3 3} {0 0} }
 SL { { line S 0 E 1 }
 { label (0,0,0) ref_pt 0 position top right } }


The l command (ell).

mged> l annot_test
annot_test:  2D annotations (annotation)
	V = (0 0 0)
	2 vertices
	Vertices:
	 0-(3 3) 1-(0 0)

	Ant:
		Line segment (3 3) <-> (0 0)
		Reference point (3 3)
		Relative position: top right

	Label text: (0,0,0)

What we currently have is a foundation for the future work. Still, there are plenty of things to be done that will be accomplished with time.