2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

xGenで書くEKL① Axisから3つのVectorをとる方法

Posted at

xGenを使っていてGrasshopperにはない機能を見つけたので忘備録として残しています。

今回作ったのは簡単なパラメトリックのファサード。
それぞれのパネルのAxisを作ってそこからジオメトリを編集しようと試みました。

Simple_Facade.PNG
features.PNG
Axis.PNG

CATIA(xGen)では、サーフェスのノーマルはとるダイレクトな方法がありましたが、サーフェスから得たAxisからそれぞれのVectorへ分解するFeatureがなかったので、EKLで書いてみました。


let originVector(Vector)

originVector = inAxis.Origin :Vector

origin = originVector

let axMatrix(Matrix)
outMatrix = inAxis.Axes : Matrix

dirX = outMatrix.GetLine(1)
dirY = outMatrix.GetLine(2)
dirZ = outMatrix.GetLine(3)
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?