Skip to content

Instantly share code, notes, and snippets.

@wkentaro
wkentaro / primitives.py
Created November 21, 2018 00:42
Example of creating scene by primitives on Trimesh
#!/usr/bin/env python
import numpy as np
import trimesh
scene = trimesh.Scene()
# plane
plane = trimesh.creation.box(extents=[1, 1, 0.01])