Commit e544ebf 1 parent 64d070f commit e544ebf Copy full SHA for e544ebf
File tree 3 files changed +7
-22
lines changed
src/compas_fea2/UI/viewer
3 files changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,7 @@ Elements
55
55
56
56
Elements are defined by the nodes they connect to and a section.
57
57
58
-
59
58
>>>
60
59
61
-
62
60
Parts
63
61
=====
Original file line number Diff line number Diff line change 1
- """
2
- ********************************************************************************
3
- Viewer
4
- ********************************************************************************
5
-
6
- .. currentmodule:: compas_fea2.UI.viewer
7
-
8
- .. autosummary::
9
- :toctree: generated/
10
-
11
- FEA2Viewer
12
-
13
- """
14
-
15
1
from .viewer import FEA2Viewer
16
2
from .shapes import (
17
3
_BCShape ,
Original file line number Diff line number Diff line change 11
11
from compas .geometry import Translation
12
12
from compas .geometry import Vector
13
13
from compas .geometry import sum_vectors
14
- from compas_view2 .app import App
15
- from compas_view2 .objects import Collection
16
- from compas_view2 .shapes import Arrow
17
- from compas_view2 .shapes import Text
18
14
19
15
from compas_fea2 .model .bcs import FixedBC
20
16
from compas_fea2 .model .bcs import PinnedBC
26
22
from compas_fea2 .UI .viewer .shapes import PinBCShape
27
23
from compas_fea2 .UI .viewer .shapes import RollerBCShape
28
24
29
- # def hextorgb(hex):
30
- # return tuple(i / 255 for i in hex_to_rgb(hex))
25
+ try :
26
+ from compas_view2 .app import App # type: ignore
27
+ from compas_view2 .objects import Collection # type: ignore
28
+ from compas_view2 .shapes import Arrow # type: ignore
29
+ from compas_view2 .shapes import Text # type: ignore
30
+ except Exception :
31
+ pass
31
32
32
33
33
34
class FEA2Viewer :
You can’t perform that action at this time.
0 commit comments