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?

More than 3 years have passed since last update.

plunkerでopenjscad その5

Posted at

#概要

plunkerでopenjscadやってみる。
setcolor使ってみた。

#写真

無題.jpg

#サンプルコード

function main() {
	var cube1 = CSG.cube({
		radius: 10
	});
	cube1 = cube1.setColor([0.8, 0, 0]);
	var cube2 = CSG.cube({
		radius: 10
	});
	cube2 = cube2.setColor([0, 0.8, 0]);
	cube2 = cube2.translate([5, 1, 4]);
	var result = cube1.subtract(cube2);
	return result;
}

#成果物

以上。

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?