Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
waves
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aerospace and Mechanical Engineering
waves
Commits
db9c48f7
Commit
db9c48f7
authored
5 years ago
by
Boman Romain
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/adrien' into ci-py3
parents
f36cd9ed
173469c1
No related branches found
No related tags found
2 merge requests
!49
Add CI with python 3 including trilinos
,
!48
Futurize for python2/3
Pipeline
#525
passed
5 years ago
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tbox/utils.py
+3
-2
3 additions, 2 deletions
tbox/utils.py
tboxVtk/cutter.py
+1
-1
1 addition, 1 deletion
tboxVtk/cutter.py
tboxVtk/qt5vtk6/QVTKRenderWindowInteractor.py
+2
-0
2 additions, 0 deletions
tboxVtk/qt5vtk6/QVTKRenderWindowInteractor.py
waves/viewer.py
+2
-2
2 additions, 2 deletions
waves/viewer.py
with
8 additions
and
5 deletions
tbox/utils.py
+
3
−
2
View file @
db9c48f7
...
...
@@ -80,10 +80,11 @@ def read(filename):
"""
Read from file and store in data array
Adrien Croavto
"""
import
io
import
numpy
as
np
# read file
fl
=
file
(
filename
)
label
=
fl
.
ne
xt
().
split
(
'
,
'
)
fl
=
io
.
open
(
filename
,
'
r
'
)
label
=
fl
.
readli
ne
().
split
(
'
,
'
)
fl
.
close
()
data
=
np
.
loadtxt
(
filename
,
delimiter
=
'
,
'
,
skiprows
=
1
)
return
data
...
...
This diff is collapsed.
Click to expand it.
tboxVtk/cutter.py
+
1
−
1
View file @
db9c48f7
...
...
@@ -48,7 +48,7 @@ class Cutter(object):
plane
.
SetOrigin
(
cutO
[
0
],
cutO
[
1
],
cutO
[
2
])
plane
.
SetNormal
(
cutN
[
0
],
cutN
[
1
],
cutN
[
2
])
# cut the threshold and get data
cutter
=
vtk
.
vtkFiltersCorePython
.
vtkCutter
()
cutter
=
vtk
.
vtkCutter
()
cutter
.
SetCutFunction
(
plane
)
cutter
.
SetInputConnection
(
thresh
.
GetOutputPort
())
cutter
.
Update
()
...
...
This diff is collapsed.
Click to expand it.
tboxVtk/qt5vtk6/QVTKRenderWindowInteractor.py
+
2
−
0
View file @
db9c48f7
# -*- coding: utf-8 -*-
# Copyright 2020 University of Liège
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
This diff is collapsed.
Click to expand it.
waves/viewer.py
+
2
−
2
View file @
db9c48f7
...
...
@@ -332,7 +332,7 @@ class Mesh(object):
self
.
mapper
=
vtk
.
vtkDataSetMapper
()
#self.mapper.SetInputConnection(self.producer.GetOutputPort())
self
.
mapper
.
SetInputData
(
ugrid
)
self
.
mapper
.
ImmediateModeRenderingOff
()
#
self.mapper.ImmediateModeRenderingOff()
self
.
mapper
.
SetResolveCoincidentTopologyToPolygonOffset
()
self
.
mapper
.
ScalarVisibilityOff
()
...
...
@@ -432,7 +432,7 @@ class ScalarBar(object):
class
Grid
(
object
):
def
__init__
(
self
,
ugrid
):
self
.
mapper
=
vtk
.
vtkDataSetMapper
()
self
.
mapper
.
ImmediateModeRenderingOff
()
#
self.mapper.ImmediateModeRenderingOff()
self
.
mapper
.
SetResolveCoincidentTopologyToPolygonOffset
()
self
.
mapper
.
ScalarVisibilityOff
()
self
.
mapper
.
SetInputData
(
ugrid
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment