0
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?

windows11で、sketchup6 その109

Posted at

概要

windows11に、sketchup6を入れてみた。
rubyで、3Dを書く。
練習問題やってみた。

練習問題

球面に描け。

写真

image.png

サンプルコード

def lissa2
	model = Sketchup.active_model
	pts = Array.new
	0.upto(360 * 12) do |i|
		m = i * 1.1
		x = 50 * Math::sin(m * Math::PI / 180) * Math::cos(i * Math::PI / 180)
		y = 50 * Math::sin(m * Math::PI / 180) * Math::sin(i * Math::PI / 180)
		z = 50 * Math::cos(m * Math::PI / 180)
		pts[i] = [x, y, z]
	end
	spring = model.entities.add_curve(pts)
end

以上

0
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
0
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?