## coin3d的坐标系

Chinese forum
johnwang
Posts: 445
Joined: Sun Jan 27, 2019 12:41 am

### coin3d的坐标系

Code: Select all

``````from pivy import coin

cub = coin.SoCube()
cub.width=10
cub.height=20
cub.depth=50
myCustomNode = coin.SoSeparator()
coin3dcube.jpg (3.59 KiB) Viewed 816 times
Last edited by johnwang on Wed Jun 03, 2020 5:58 am, edited 1 time in total.

paullee
Posts: 2661
Joined: Wed May 04, 2016 3:58 pm

### Re: coin3d的坐标系

johnwang
Posts: 445
Joined: Sun Jan 27, 2019 12:41 am

### Re: coin3d的坐标系

paullee wrote:
Tue Jun 02, 2020 4:48 pm

Scenegraph就是个绘图空间。你造好一个六面体，贴好标签（SoSeparator），扔到里面就可以了。

Code: Select all

``````from pivy import coin

#找到绘图空间

#做六面体
cub = coin.SoCube()
cub.width=10
cub.height=20
cub.depth=50

#做标签
myCustomNode = coin.SoSeparator()

#把标签挂到六面体上

#扔到绘图空间里

paullee
Posts: 2661
Joined: Wed May 04, 2016 3:58 pm

### Re: coin3d的坐标系

johnwang wrote:
Tue Jun 02, 2020 11:00 pm

Code: Select all

``````from pivy import coin

#找到绘图空间

#做六面体
cub = coin.SoCube()
cub.width=10
cub.height=20
cub.depth=50

#做标签
myCustomNode = coin.SoSeparator()

#把标签挂到六面体上