fullseye

annotate3d_axes — 3D annotate3d op

使い方

画像(image2d)を返す: 世界座標の 3 軸(gnomon)を origin から射影して描く。

Raises

ValueError length が非正、原点や軸端がカメラの後ろ、labels/colors が 3 つでない、 軸の文字が画像に収まらない。

手順: origin と、そこから世界座標の +X / +Y / +Z 方向に length 進んだ 3 点を射影(annotate3d_project と同じ慣習)し、原点の画素から各軸端の画素へ annotate.arrow(矢じり 8x6 px)を描く。軸端の先 0.7 * font_size px の 位置に labels[i] を背景なし(box_alpha=0)の文字で置く。

引数:

返り値: 描画済みの新しい画像(float64 [0, 1])。

エラーになる条件: length <= 0 / labelscolors の長さが 3 でない / 原点または軸端のいずれかが z <= 1e-9 / 姿勢・Kdepth の不正 / 軸の 文字が画像に収まらない。枠外の軸端はエラーにしない(矢印は枠外まで引く)。 視線と一致して点に潰れた軸(画素長 1e-9 未満)は黙ってスキップする。

使いどころ: 図の姿勢の説明(gnomon)。render3d.look_atpose を そのまま渡し、origin にメッシュの重心や bounds の角を置く。

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(image2d を入力に取れる)

fuse_to_voxel · fit_poly_surface · eval_poly_surface · surface_form_error · background_flatten · polar_unwrap · fit_zernike · matcap_shade

同カテゴリ(annotate3d)

annotate3d_project · annotate3d_arrow · annotate3d_label · annotate3d_scale_bar · annotate3d_bbox · annotate3d_measure


Provenance: annotate3d.py — 3D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.