Editing Annot

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
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.
 

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)