示例#1
0
文件: lod2.py 项目: chrismile/LineVis
def init_scene():
    g.set_duration(0)
    g.set_dataset('Arched Bridge 3D (TVCG01, Fig 6, Fig 9)')
    #g.set_dataset('KittenHex (Vis2021, results)')
    g.set_camera_checkpoint('Front')
    g.set_rendering_algorithm_settings({
        'line_width': 0.0022,
        'band_width': 0.004,
        'depth_cue_strength': 0.8
    })
    g.set_dataset_settings({
        'attribute': "Principal Stress",
        'major_on': True,
        'medium_on': False,
        'minor_on': True,
        'major_lod': 1.0,
        'medium_lod': 1.0,
        'minor_lod': 1.0,
        'major_use_bands': False,
        'medium_use_bands': False,
        'minor_use_bands': False,
        'thick_bands': True,
        'smoothed_bands': True,
        'use_principal_stress_direction_index': True,
    })
    g.set_transfer_functions([
        'qualitative-ocher.xml', 'qualitative-emerald.xml',
        'qualitative-pale-lilac.xml'
    ])
    g.set_duration(6)
示例#2
0
def init_scene():
    g.set_duration(0)
    g.set_dataset('Cantilever (Vis2021)')
    g.set_camera_checkpoint('Overview')
    g.set_rendering_algorithm_settings({
        'line_width': 0.007,
        'band_width': 0.005,
        'depth_cue_strength': 0.0
    })
    g.set_dataset_settings({
        'attribute': "Principal Stress",
        'major_on': True,
        'medium_on': False,
        'minor_on': True,
        'major_lod': 0.5,
        'minor_lod': 0.5,
        'major_use_bands': True,
        'minor_use_bands': False,
        'thick_bands': False,
        'smoothed_bands': True,
        'use_principal_stress_direction_index': True,
    })
    g.set_transfer_functions([
        'qualitative-pale-lilac.xml', 'qualitative-emerald.xml',
        'qualitative-ocher.xml'
    ])
示例#3
0
def init_scene():
    g.set_duration(0)
    g.set_dataset('Femur (Vis2021, Teaser)')
    g.set_camera_checkpoint('TeaserA-2')
    g.set_rendering_algorithm_settings({
        'line_width': 0.005,
        'band_width': 0.008,
        'depth_cue_strength': 0.8
    })
    g.set_dataset_settings({
        'attribute': "Principal Stress Magnitude",
        'major_on': True,
        'medium_on': False,
        'minor_on': True,
        'major_lod': 0.3,
        'minor_lod': 0.5,
        'major_use_bands': True,
        'minor_use_bands': False,
        'thick_bands': True,
        'smoothed_bands': True,
        'use_principal_stress_direction_index': True,
    })
    g.set_transfer_functions([
        'qualitative-pale-lilac.xml', 'qualitative-emerald.xml',
        'qualitative-ocher.xml'
    ])
    g.set_transfer_functions_ranges([(0.0, 1.594), (0.0, 1.594), (0.0, 1.594)])
    #g.set_transfer_functions_ranges([(-0.06, 1.274), (-0.213, 0.157), (-0.96, 0.019)])
    g.set_duration(0.001)
    g.set_transfer_functions_ranges([(0.0, 1.594), (0.03, 1.594),
                                     (0.0, 1.594)])
    g.set_duration(6)
示例#4
0
def init_scene():
    g.set_duration(0)
    g.set_dataset('Arched Bridge 3D (TVCG01, Fig 6, Fig 9)')
    g.set_camera_checkpoint('Closeup')
    g.set_rendering_algorithm_settings({
        'band_width': 0.003,
        'depth_cue_strength': 0.8
    })
    g.set_dataset_settings({
        'major_on': False,
        'medium_on': False,
        'minor_on': True,
        'minor_lod': 0.3,
        'minor_use_bands': True,
        'thick_bands': False,
        'smoothed_bands': True,
        'use_principal_stress_direction_index': True
    })
    g.set_transfer_functions([
        'qualitative-ocher.xml', 'qualitative-emerald.xml',
        'qualitative-pale-lilac.xml'
    ])
示例#5
0
def use_principal_stress():
    g.set_duration(0)
    g.set_transfer_functions(['blues.xml', 'greens.xml', 'reds.xml'])
    #g.set_transfer_functions_ranges([(-0.071, 0.551), (-0.213, 0.157), (-0.665, 0.096)])
    #g.set_transfer_functions_ranges([(-0.06, 1.274), (-0.213, 0.157), (-0.96, 0.019)])
    g.set_duration(6)