Text area¶
Text area.
Example
import meshcat
import meshcat_shapes
vis = meshcat.Visualizer().open()
meshcat_shapes.textarea(vis["text"], "super easy")
Notes
To be simplified once https://github.com/rdeits/meshcat-python/pull/111 makes it to a released version of meshcat-python.
- class meshcat_shapes.textarea.Plane(width=1.0, height=1.0, width_segments=1, height_segments=1)¶
Plane segment.
- height¶
Plane segment height.
- height_segments¶
Number of height segments.
- width¶
Plane segment width.
- width_segments¶
Number of width segments.
- lower(_)¶
Serialize object.
- Parameters:
object_data – Unused.
- class meshcat_shapes.textarea.TextTexture(text, font_size=100, font_face='sans-serif')¶
Text texture.
- font_face¶
Font face.
- font_size¶
Font size in px.
- text¶
Text content.
- lower(_)¶
Serialize texture.
- Parameters:
object_data – Unused.
- meshcat_shapes.textarea.textarea(handle, text, width=1.0, height=1.0, font_size=100, font_face='sans-serif')¶
Set MeshCat handle to a text area.
- Parameters:
handle (
Visualizer
) – MeshCat handle to attach the frame to.text (
str
) – Content to write inside the text area.width (
float
) – Text area width.height (
float
) – Text area height.font_size (
int
) – Font size in px.font_face (
str
) – Font face.
- Return type:
None
Note
As per the de-facto standard (Blender, OpenRAVE, RViz, …), the x-axis is red, the y-axis is green and the z-axis is blue.