<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cvl-robot</author_name>
  <author_url>https://blog.hatena.ne.jp/cvl-robot/</author_url>
  <blog_title>cvl-robot's diary</blog_title>
  <blog_url>https://cvl-robot.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>忘れそうだったのでメモ。 端点を2点指定してその間にシリンダーを描画するサンプル。 ofCylinderPrimitiveは、デフォルトで(0,1,0)の方向に長軸が表示されるので、そのベクトルを2点を結ぶベクトルに沿うように回転させるだけ。 原理は簡単。忘れそうなのは、ofVec3fで外積を求める方法。 z.cross(v)だと、外積を返した上にzも同じ値になってしまう。外積を返すだけなら、z.getCrossed(v)｡ 間に余計な処理を書いたせいで、無駄に時間を食ってしまった。 void ofApp::drawCylinder2Pt(ofVec3f p, ofVec3f q, float…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcvl-robot.hateblo.jp%2Fentry%2F2018%2F04%2F19%2F161444&quot; title=&quot;メモ： openFrameworksで2点を指定してofCylinderPrimitiveを描画する方法 - cvl-robot&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51o8e1uQbtL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-19 16:14:44</published>
  <title>メモ： openFrameworksで2点を指定してofCylinderPrimitiveを描画する方法</title>
  <type>rich</type>
  <url>https://cvl-robot.hateblo.jp/entry/2018/04/19/161444</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
