File: rendering.py

package info (click to toggle)
yade 2026.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,448 kB
  • sloc: cpp: 97,645; python: 52,173; sh: 677; makefile: 162
file content (14 lines) | stat: -rw-r--r-- 465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- encoding=utf-8 -*-
# Vasileios Angelidakis <v.angelidakis"qub.ac.uk> Jerome Duriez <jerome.duriez@inrae.fr>
# Rendering options of LevelSet particles

from yade import qt

O.bodies.append(levelSetBody('sphere', (3, 0, 0), 1))
O.bodies[-1].shape.color = [0.2, 0.9, 0.3]

Gl1_LevelSet.surfNodes = True  # Render surface nodes
Gl1_LevelSet.wire = True  # Render wireframe
Gl1_LevelSet.surface = True  # Render particle surface

v = qt.View()  # Activate qt view