<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katsumi3</author_name>
  <author_url>https://blog.hatena.ne.jp/katsumi3/</author_url>
  <blog_title>アストラルプリズム</blog_title>
  <blog_url>https://katsumi3.hatenablog.com/</blog_url>
  <categories>
    <anon>blender</anon>
    <anon>blender-bpy</anon>
  </categories>
  <description>指定したベクトル（ここではノーマル）の方向に頂点を移動する。 new_locのところまでは頂点の値はグローバル座標なので、マトリックスワールドを逆さ（invert）させたものを掛けてローカル座標に直している obj=bpy.data.objects['立方体.003'] mw=obj.matrix_world norm=obj.data.polygons[2].normal @ mw p1 = mw@obj.data.vertices[6].co new_loc = p1 + 4 * norm inv = mw.copy() inv.invert() obj.data.vertices[6].…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatsumi3.hatenablog.com%2Fentry%2F2020%2F01%2F10%2F233924&quot; title=&quot;Blender python 指定したベクトルの方向に頂点を移動 - アストラルプリズム&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-10 23:39:24</published>
  <title>Blender python 指定したベクトルの方向に頂点を移動</title>
  <type>rich</type>
  <url>https://katsumi3.hatenablog.com/entry/2020/01/10/233924</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
