]> gerrit.simantics Code Review - simantics/3d.git/log
simantics/3d.git
4 years agoAllow repeated single clicks to activate property editing 31/3631/1 release/1.40.0
Reino Ruusu [Mon, 25 Nov 2019 11:51:50 +0000 (13:51 +0200)]
Allow repeated single clicks to activate property editing

gitlab #58

Change-Id: I34c98ec258b08e25cd2aa6305644437804a1cf94
(cherry picked from commit 32b0d23669bb57c4869ea4b761ae821892a14be5)

4 years agoMerge "Move plant3d test-product specific contributions to product plugin."
Tuukka Lehtonen [Sat, 31 Aug 2019 21:11:44 +0000 (21:11 +0000)]
Merge "Move plant3d test-product specific contributions to product plugin."

4 years agoMove plant3d test-product specific contributions to product plugin. 73/3173/1
Tuukka Lehtonen [Thu, 29 Aug 2019 21:21:15 +0000 (00:21 +0300)]
Move plant3d test-product specific contributions to product plugin.

This prevents polluting any products including the plant3d modeling
feature with unwanted UI contributions.

gitlab #29

Change-Id: I28ceb91db0d12da19afcd41789cf94397142bd06

4 years agoReversing pipe runs was never implemented properly 72/3172/1
Marko Luukkainen [Thu, 29 Aug 2019 15:53:37 +0000 (18:53 +0300)]
Reversing pipe runs was never implemented properly

gitlab #12

Change-Id: I0cdc134cdea887717237b6dc428c86e8681ac595

4 years agoUnattached size change (reducer) did not recognise being size change 71/3171/1
Marko Luukkainen [Thu, 29 Aug 2019 15:51:53 +0000 (18:51 +0300)]
Unattached size change (reducer) did not recognise being size change

gitlab #12

Change-Id: Ife915d2a48050fc65617d905e41a821894a623c3

4 years agoAdding a component next to a reducer used wrong PipeRun 70/3170/1
Marko Luukkainen [Thu, 29 Aug 2019 15:50:11 +0000 (18:50 +0300)]
Adding a component next to a reducer used wrong PipeRun

gitlab #12

Change-Id: I8164d704011761f35d004506dba9462c24c7272f

4 years agoPreliminary example of creating pipes with elbow coordinates 65/3165/1
Marko Luukkainen [Wed, 28 Aug 2019 14:55:06 +0000 (17:55 +0300)]
Preliminary example of creating pipes with elbow coordinates

* ComponentUtil.connect now works, if connected Component is not
attached to a PipeRun
* Modified Piping rules to use path leg ends for turn calculation

gitlab #28

Change-Id: If16e6e63e44a697d5c07c0f3ec0d1a0c0fba3b9d

4 years agoHandle variable length free end updates properly 61/3161/1
Marko Luukkainen [Mon, 26 Aug 2019 13:31:41 +0000 (16:31 +0300)]
Handle variable length free end updates properly

Depending on which control point was updated, we may need to update free
ends position.

gitlab #24
gitlab #26

Change-Id: I0f3c99b279ea14d2caf57fcbc1f15a7da7425d3c

4 years agoSCL Test models for Plant3d 59/3159/1
Marko Luukkainen [Mon, 26 Aug 2019 12:14:10 +0000 (15:14 +0300)]
SCL Test models for Plant3d

gitlab #28

Change-Id: I3beaec931fd327f56fd78da7f188836ad0a843cb

4 years agoAdded <Proc> side effects 58/3158/1
Marko Luukkainen [Mon, 26 Aug 2019 12:13:43 +0000 (15:13 +0300)]
Added <Proc> side effects

* Without <Proc> some functions would not work properly

gitlab #28

Change-Id: I9ba6c545c46ddab560b27e8cb6e96013905a2985

4 years agoMerge "Improve elbow placement when dual directed pathleg is no loner aligned"
Marko Luukkainen [Thu, 22 Aug 2019 09:55:41 +0000 (09:55 +0000)]
Merge "Improve elbow placement when dual directed pathleg is no loner aligned"

4 years agoImprove elbow placement when dual directed pathleg is no loner aligned 43/3143/1
Marko Luukkainen [Thu, 22 Aug 2019 09:48:21 +0000 (12:48 +0300)]
Improve elbow placement when dual directed pathleg is no loner aligned

gitlab #14

Change-Id: If1cecdafe12b27a9836f1e39297eb4d19bd37db1

4 years agoFurther refactoring of SCL interfaces 42/3142/2
Reino Ruusu [Wed, 21 Aug 2019 15:41:30 +0000 (18:41 +0300)]
Further refactoring of SCL interfaces

gitlab #28

Change-Id: I3f82066ab83ab3210f8879d0457e6a1b7ba5e72f

4 years agoAdd "New Plant" as model browser action. 38/3138/2
Reino Ruusu [Wed, 21 Aug 2019 12:27:11 +0000 (15:27 +0300)]
Add "New Plant" as model browser action.

Change-Id: I60d036fbc2cf726fbdf7e2961def4f34c8d45483

4 years agoPlant3D customization 41/3141/1
Marko Luukkainen [Wed, 21 Aug 2019 15:02:27 +0000 (18:02 +0300)]
Plant3D customization

* Expose packages
* Allow equipment to be loaded from non-default location
* Fixed ontology errors

gitlab #29

Change-Id: Id82c78edf353aec643a65c6304eb12a664b36778

4 years agoHandle fixed turn components when pipe run is reversed. 35/3135/1
Marko Luukkainen [Wed, 21 Aug 2019 10:21:51 +0000 (13:21 +0300)]
Handle fixed turn components when pipe run is reversed.

Handle unconnected variable length component, when it is the firs
component of a path leg.

gitlab #23

Change-Id: Iccc027fca87a4e4e89fae88f58e53f245eb5025c

4 years agoSCL function for connecting pipeline components 31/3131/1
Marko Luukkainen [Wed, 21 Aug 2019 07:46:28 +0000 (10:46 +0300)]
SCL function for connecting pipeline components

gitlab #28

Change-Id: I8ab03b0593d62824feb2a2b994a13376c6654d15

4 years agoNozzle positions were not loaded correctly 29/3129/1
Marko Luukkainen [Tue, 20 Aug 2019 14:27:54 +0000 (17:27 +0300)]
Nozzle positions were not loaded correctly

Fixed nozzle positions were loaded with default equipment
parametrisation

gitlab #27

Change-Id: Ic64b9ef442dd30be569ba80a8fa554dab132e7e1

4 years agoVery crude API for creating pipeline components 27/3127/1
Marko Luukkainen [Tue, 20 Aug 2019 13:32:05 +0000 (16:32 +0300)]
Very crude API for creating pipeline components

gitlab #28

Change-Id: I2c593b81fdcb3a3b996369b4bb2a8a9f6eb43906

4 years agoCreating equipment with typeURI 24/3124/1
Marko Luukkainen [Tue, 20 Aug 2019 11:59:10 +0000 (14:59 +0300)]
Creating equipment with typeURI

gitlab #28

Change-Id: I568f47f22bcc53649cd6fada4c179fcd9a3841d3

4 years agoNozzle positions were not loaded correctly 23/3123/1
Marko Luukkainen [Tue, 20 Aug 2019 11:56:46 +0000 (14:56 +0300)]
Nozzle positions were not loaded correctly

Fixed nozzle positions were loaded with default equipment
parametrisation

gitlab #27

Change-Id: I895d5c53658af41236e5285c6f2b582a8fdd617e

4 years agoMaven pom.xml files for plant3d projects 20/3120/8
Reino Ruusu [Mon, 19 Aug 2019 15:39:46 +0000 (18:39 +0300)]
Maven pom.xml files for plant3d projects

Also added org.simantics.plant3d.product.repository for building plant3d
test product.

Change-Id: I511a896bde58e25403ad6fec6d855b98822cd29c

4 years agoRefactoring of SCL interfaces for g3d. 19/3119/3
Reino Ruusu [Mon, 19 Aug 2019 14:26:30 +0000 (17:26 +0300)]
Refactoring of SCL interfaces for g3d.

gitlab #28

Change-Id: I79893888975610f78c850410d7dcd8d9df4662aa

4 years agoMerge "Preventing synchronizing commits after undo / redo are mandatory"
Marko Luukkainen [Mon, 19 Aug 2019 14:43:30 +0000 (14:43 +0000)]
Merge "Preventing synchronizing commits after undo / redo are mandatory"

4 years agoPreventing synchronizing commits after undo / redo are mandatory 17/3117/2
Marko Luukkainen [Mon, 19 Aug 2019 12:52:48 +0000 (15:52 +0300)]
Preventing synchronizing commits after undo / redo are mandatory

Allowing synchronizing commits with empty message and no undo point
trash the undo history and prevent redo operations.

Include scl folder in build.properties

gitlab #24

Change-Id: I0af0cbf3be21a23ac4f8ed20a48881bef21465d2

4 years agoMerge "Fix component add with overlapping setting"
Marko Luukkainen [Mon, 19 Aug 2019 13:03:06 +0000 (13:03 +0000)]
Merge "Fix component add with overlapping setting"

4 years agoFix component add with overlapping setting 16/3116/1
Marko Luukkainen [Mon, 19 Aug 2019 11:05:00 +0000 (14:05 +0300)]
Fix component add with overlapping setting

gitlab #26

Change-Id: Ib510633edd933d0def918e0af996cb6f56986876

4 years agoMerge "Safe SCL cast for Java objects"
Marko Luukkainen [Mon, 19 Aug 2019 06:21:51 +0000 (06:21 +0000)]
Merge "Safe SCL cast for Java objects"

4 years agoSafe SCL cast for Java objects 14/3114/2
Marko Luukkainen [Mon, 19 Aug 2019 06:08:46 +0000 (09:08 +0300)]
Safe SCL cast for Java objects

gitlab #28

Change-Id: I7e8fa4b9bfc6bf3803c8dbfb5c65eb2d631a968b

4 years agoMerge "Additional SCL Bindings to G3D and Plant3D classes"
Marko Luukkainen [Fri, 16 Aug 2019 12:55:28 +0000 (12:55 +0000)]
Merge "Additional SCL Bindings to G3D and Plant3D classes"

4 years agoAdditional SCL Bindings to G3D and Plant3D classes 11/3111/1
Marko Luukkainen [Fri, 16 Aug 2019 12:43:24 +0000 (15:43 +0300)]
Additional SCL Bindings to G3D and Plant3D classes

gitlab #28

Change-Id: I1f3b29cd84ac60a16c58736ddae31792393a08ec

4 years agoMerge "SCL bindings to some G3D and Plant3D Java classes"
Marko Luukkainen [Thu, 15 Aug 2019 14:04:20 +0000 (14:04 +0000)]
Merge "SCL bindings to some G3D and Plant3D Java classes"

4 years agoSCL bindings to some G3D and Plant3D Java classes 10/3110/1
Marko Luukkainen [Thu, 15 Aug 2019 14:01:36 +0000 (17:01 +0300)]
SCL bindings to some G3D and Plant3D Java classes

gitlab #28

Change-Id: Ide08db8b186645096e50739c6e49d65b2585d627

4 years agoMerge "First version of fixed nozzle positions"
Marko Luukkainen [Thu, 15 Aug 2019 09:17:44 +0000 (09:17 +0000)]
Merge "First version of fixed nozzle positions"

4 years agoMerge "Fix NPE in branch point synchronization"
Marko Luukkainen [Thu, 15 Aug 2019 09:17:35 +0000 (09:17 +0000)]
Merge "Fix NPE in branch point synchronization"

4 years agoMerge "Simplified free ended variable length component update"
Marko Luukkainen [Thu, 15 Aug 2019 09:17:30 +0000 (09:17 +0000)]
Merge "Simplified free ended variable length component update"

4 years agoFirst version of fixed nozzle positions 07/3107/1
Marko Luukkainen [Thu, 15 Aug 2019 09:16:39 +0000 (12:16 +0300)]
First version of fixed nozzle positions

Fixed nozzles are not added to equipment automatically.

gitlab #27

Change-Id: I675bee1132131fd9033f9054ea654c33ab60ffc6

4 years agoFix NPE in branch point synchronization 06/3106/1
Marko Luukkainen [Thu, 15 Aug 2019 07:10:47 +0000 (10:10 +0300)]
Fix NPE in branch point synchronization

gitlab #24

Change-Id: Ibd0641bde997d1ddb454c1b596aec04b583a4807

4 years agoSimplified free ended variable length component update 04/3104/1
Marko Luukkainen [Wed, 14 Aug 2019 15:19:00 +0000 (18:19 +0300)]
Simplified free ended variable length component update

* Previous code was combined with route pipe action, which did not take
account spaced reserved by previous turn component.
* The update code caused undo/redo synchronization issues, since it
altered intended position of the control point

gitlab #24
gitlab #26

Change-Id: I89c7bbc608e7900f0b18b33ce1e390c5469cf0bd

4 years agoMerge "Added missing change to generated ontology class."
Tuukka Lehtonen [Wed, 14 Aug 2019 10:46:42 +0000 (10:46 +0000)]
Merge "Added missing change to generated ontology class."

4 years agoMerge "More precise position selection for add component action"
Marko Luukkainen [Wed, 14 Aug 2019 10:45:49 +0000 (10:45 +0000)]
Merge "More precise position selection for add component action"

4 years agoMore precise position selection for add component action 03/3103/1
Marko Luukkainen [Wed, 14 Aug 2019 10:42:15 +0000 (13:42 +0300)]
More precise position selection for add component action

When we are adding variable length component or the component where we
are inserting is variable length, we can shorten the variable length
component based on user input.

gitlab #26

Change-Id: I0ec9d3ff86497b109aa8a8320fb6476db897afd5

4 years agoMerge changes Ib176f957,I9a82db4e,Id0fdacee
Marko Luukkainen [Wed, 14 Aug 2019 09:38:32 +0000 (09:38 +0000)]
Merge changes Ib176f957,I9a82db4e,Id0fdacee

* changes:
  Add component did not work properly for nozzles.
  Show components in connected order in outline with debug mode
  Additional fix to control point synchronization

4 years agoAdd component did not work properly for nozzles. 99/3099/1
Marko Luukkainen [Tue, 13 Aug 2019 15:49:37 +0000 (18:49 +0300)]
Add component did not work properly for nozzles.

gitlab #25

Change-Id: Ib176f957a256a396d59d096d8d8246fe334d9756

4 years agoShow components in connected order in outline with debug mode 98/3098/1
Marko Luukkainen [Tue, 13 Aug 2019 15:45:24 +0000 (18:45 +0300)]
Show components in connected order in outline with debug mode

gitlab #19

Change-Id: I9a82db4e4a91ea3fb2b3279431c3867e6b0ddd57

4 years agoAdditional fix to control point synchronization 97/3097/1
Marko Luukkainen [Tue, 13 Aug 2019 15:29:02 +0000 (18:29 +0300)]
Additional fix to control point synchronization

gitlab #24

Change-Id: Id0fdaceeafc95495ad7ae7365f44214903b47bea

4 years agoMerge changes Ia3e00f11,I7f3a3a75
Marko Luukkainen [Tue, 13 Aug 2019 14:04:19 +0000 (14:04 +0000)]
Merge changes Ia3e00f11,I7f3a3a75

* changes:
  Clear removed objects from mapping cache
  Mark undo pints when committing changes to the graph

4 years agoClear removed objects from mapping cache 96/3096/1
Marko Luukkainen [Tue, 13 Aug 2019 13:52:55 +0000 (16:52 +0300)]
Clear removed objects from mapping cache

* Using undo/redo caused mapping cache to return already removed
objects, which caused bookkeeping issues.
* PipeControlPoints structure is now more resilient to random order of
graph side changes.

gitlab #24

Change-Id: Ia3e00f116bb86be3ef4472a646058842d1c28c27

4 years agoAdded missing change to generated ontology class. 95/3095/1
Reino Ruusu [Tue, 13 Aug 2019 09:35:28 +0000 (12:35 +0300)]
Added missing change to generated ontology class.

gitlab #23

Change-Id: I97bd496296330ed540f7175c19045705730a6575

4 years agoMark undo pints when committing changes to the graph 93/3093/2
Marko Luukkainen [Mon, 12 Aug 2019 10:03:28 +0000 (13:03 +0300)]
Mark undo pints when committing changes to the graph

gitlab #24

Change-Id: I7f3a3a7501acf93b5ffc6e0a92e00fbe5ba38827

4 years agoMerge "Support for fixed turn components"
Marko Luukkainen [Mon, 12 Aug 2019 09:40:41 +0000 (09:40 +0000)]
Merge "Support for fixed turn components"

4 years agoSupport for fixed turn components 92/3092/1
Marko Luukkainen [Mon, 12 Aug 2019 09:26:46 +0000 (12:26 +0300)]
Support for fixed turn components

gitlab #23

Change-Id: Idfee9d27e1209748199446734f94988e0f7d0e71

4 years agoRepository clean-up. 91/3091/3
Reino Ruusu [Mon, 12 Aug 2019 05:52:14 +0000 (08:52 +0300)]
Repository clean-up.

* Remove graph.tg files from the repository
* Update changed ontology classes
* Remove src directories from classpaths of binary fragments

Change-Id: I47bbf5f05fa59763bb99df976f2185482109bfd9

4 years agoHiDPI fixes 87/3087/1
Marko Luukkainen [Fri, 9 Aug 2019 14:27:58 +0000 (17:27 +0300)]
HiDPI fixes

gitlab #22

Change-Id: Ib6589309b5b1d9ce3d9f1f369803b262df04ae76

4 years agoImplemented mouse wheel zoom in camera and selector action 78/3078/1
Marko Luukkainen [Thu, 8 Aug 2019 12:30:23 +0000 (15:30 +0300)]
Implemented mouse wheel zoom in camera and selector action

* Previously mouse wheel zoom was done in native interactor, which
bypassed InteractiveVtkComposite render listener mechanism

gitlab #21

Change-Id: Ia22d34617dd9ef741b338b52343fb85e7b43d406

4 years agoVarious fixes to vtk swt components 68/3068/1
Marko Luukkainen [Wed, 7 Aug 2019 15:15:12 +0000 (18:15 +0300)]
Various fixes to vtk swt components

* Delete objects to prevent memory leaks
* Added additional logic to SWT->AWT event conversion

gitlab #22

Change-Id: I2ad4b61171cb7a97475196a9a3afc3130771f04c

4 years agoUsing SWT thread with Plant3d 67/3067/5
Marko Luukkainen [Wed, 7 Aug 2019 14:46:11 +0000 (17:46 +0300)]
Using SWT thread with Plant3d

gitlab #21

Change-Id: I15483236ec95a4e41622c71db182e0a2d6bbaaac

4 years agoInclude CSG modelling with Plant3D 65/3065/1
Marko Luukkainen [Tue, 6 Aug 2019 09:46:44 +0000 (12:46 +0300)]
Include CSG modelling with Plant3D

gitlab #20

Change-Id: I2e2da1579d4982abfe08c9548f9f335ba3353110

4 years agoOutline view is able to show control points with debugging mode 64/3064/1
Marko Luukkainen [Tue, 6 Aug 2019 09:40:35 +0000 (12:40 +0300)]
Outline view is able to show control points with debugging mode

gitlab #19

Change-Id: Ice5ba0c5a8d14c33fe8283e6d1d52cf3e09496da

4 years agoFix cap typing. 61/3061/1
Marko Luukkainen [Mon, 5 Aug 2019 13:26:38 +0000 (16:26 +0300)]
Fix cap typing.

Additionally, fixed a NPE when user clicks empty space in component
selection dialog.

gitlab #18

Change-Id: If30d7f51bcaeadf2f6643055e656817f36a3a432

4 years agoDisable in-line translate for variable length components 60/3060/1
Marko Luukkainen [Mon, 5 Aug 2019 13:18:09 +0000 (16:18 +0300)]
Disable in-line translate for variable length components

gitlab #17

Change-Id: I587c5f1af80db32e237adf628bf70d446d432781

4 years agoSupport for reversible in-line components 59/3059/1
Marko Luukkainen [Mon, 5 Aug 2019 12:32:55 +0000 (15:32 +0300)]
Support for reversible in-line components

gitlab #13

Change-Id: I2348320a5bba2b8d86b7a0bcc118d85f81023186

4 years agoTranslate action for inline components 58/3058/1
Marko Luukkainen [Mon, 5 Aug 2019 11:29:58 +0000 (14:29 +0300)]
Translate action for inline components

gitlab #14

Change-Id: I4f051a585288130479049490337c0c46c1803c3f

4 years agoIAdaptable interface / Class is parameterised 33/3033/1
Marko Luukkainen [Thu, 18 Jul 2019 14:55:34 +0000 (17:55 +0300)]
IAdaptable interface / Class is parameterised

gitlab #16

Change-Id: I4f8c25790d3d0dc39726efda82abe8734552e0d1

4 years agoCheck parameter inputs in geometry providers. 32/3032/1
Marko Luukkainen [Thu, 18 Jul 2019 14:50:36 +0000 (17:50 +0300)]
Check parameter inputs in geometry providers.

gitlab #15

Change-Id: Ib891e910c7a78d1d4f9e6ff8ca1bad137e3ff95d

4 years agoUse path leg end point check for offset legs 31/3031/1
Marko Luukkainen [Thu, 18 Jul 2019 14:47:22 +0000 (17:47 +0300)]
Use path leg end point check for offset legs

gitlab #14

Change-Id: Ibd35af89a21e2c6bf188b740f68c685e12f6c39e

4 years agoHandle variable length components on offset path leg 29/3029/1
Marko Luukkainen [Thu, 18 Jul 2019 13:14:09 +0000 (16:14 +0300)]
Handle variable length components on offset path leg

* Offset path leg update may now insert a straight, if there is
available space
* Inline component update could add and remove control points without
updating update struct.
* Removing pipe control point had cyclic dependency to itself (through
component)

gitlab #12

Change-Id: I27e9385cda3077dd1f3e16f7bfbd0015352d98fd

4 years agoUse a bit darker grey color for elbows 27/3027/1
Marko Luukkainen [Wed, 17 Jul 2019 16:03:20 +0000 (19:03 +0300)]
Use a bit darker grey color for elbows

gitlab #10

Change-Id: I40fce24e14ebceb7a74fe88c52381bce725757d6

4 years agoChanged inline component update to take account required space 26/3026/1
Marko Luukkainen [Wed, 17 Jul 2019 16:02:06 +0000 (19:02 +0300)]
Changed inline component update to take account required space

gitlab #14

Change-Id: Ia0085d15647c666fd2a6802a9490a7f8e3f3d95b

4 years agoRotating eccentric reducer did not update elbows on the same leg 25/3025/1
Marko Luukkainen [Wed, 17 Jul 2019 09:03:26 +0000 (12:03 +0300)]
Rotating eccentric reducer did not update elbows on the same leg

gitlab #12

Change-Id: I81392a1c6d2644f6b7d7c5c336a9e870582380be

4 years agoPrevent editing null values 24/3024/1
Marko Luukkainen [Wed, 17 Jul 2019 09:01:48 +0000 (12:01 +0300)]
Prevent editing null values

* This is a temporary solution for Inline components that do not support
rotation

gitlab #13

Change-Id: Ibd948a2537a63c9775726a5b5bbe6a6d06c5f505

4 years agoFixed path leg direction vector calculation 23/3023/1
Marko Luukkainen [Tue, 16 Jul 2019 17:34:13 +0000 (20:34 +0300)]
Fixed path leg direction vector calculation

* Calculated direction was opposite to the actual direction

gitlab #12

Change-Id: I8ea135f3cec5a0d80e42c9a2d9ecb626fb4f11a5

4 years agoSupport for inline component rotations 22/3022/1
Marko Luukkainen [Tue, 16 Jul 2019 16:25:00 +0000 (19:25 +0300)]
Support for inline component rotations

* P3D.RotateComponent tag
* P3D.HasRotationAngle property relation
* PipeControlPoint rotate flag
* InlineComponent get/set RotationAngle methods
* Gate Valve inline component for testing the feature

gitlab #13

Change-Id: I2a1fb87a5de312d2870189b0e81791feeec1f652

4 years agoSupport for fillets and chamfers 21/3021/1
Marko Luukkainen [Tue, 16 Jul 2019 16:07:54 +0000 (19:07 +0300)]
Support for fillets and chamfers

gitlab #9

Change-Id: I69c0ec1c538d9eb2dfa83c8f88bf6a0faa881fb8

4 years agoTurn component calculation with offset vector fixed 20/3020/1
Marko Luukkainen [Tue, 16 Jul 2019 12:28:11 +0000 (15:28 +0300)]
Turn component calculation with offset vector fixed

gitlab #12

Change-Id: Iac7b2676a2f189db135f81fe24420912f994bf9b

4 years agoAdded support for eccentric reducers 19/3019/1
Marko Luukkainen [Tue, 16 Jul 2019 10:50:28 +0000 (13:50 +0300)]
Added support for eccentric reducers

* Various fixes to PipingRules
* At the moment, offset calculation is hard-coded. (Introduced component
calculated offset, but that has not been tested)
* AddComponentAction is able to place components in proper location
after reducer
* Reducer uses custom mesh

gitlab #12
gitlab #10

Change-Id: I62fdd4df5acc9e8e02823d36b738b48f70f56ac4

4 years agoChanged Check Valve to point flow (pipeline definition) direction 18/3018/1
Marko Luukkainen [Tue, 16 Jul 2019 10:39:34 +0000 (13:39 +0300)]
Changed Check Valve to point flow (pipeline definition) direction

gitlab #11

Change-Id: I018782d579a0a5159dd1e412860fe461a2503ce1

4 years agoCreated Mesh API for Plant3D objects 17/3017/1
Marko Luukkainen [Mon, 15 Jul 2019 13:28:38 +0000 (16:28 +0300)]
Created Mesh API for Plant3D objects

* Replaced OCCT-based geometries for Straight and Elbow.
* MeshActor is able to bypass mesh normals to VTK

gitlab #10

Change-Id: Ib201d29802921df35a5fa88da922e8265b54df7c

4 years agoFix PNG loading 16/3016/1
Marko Luukkainen [Fri, 12 Jul 2019 12:34:39 +0000 (15:34 +0300)]
Fix PNG loading

* Added vtkIOImage to native libraries

gitlab #2

Change-Id: I80e7133eeacee4d260985afca6a8a80a52087d2f

4 years agoUpdated OpenCASCADE to 7.3.0 07/3007/4
Marko Luukkainen [Fri, 5 Jul 2019 14:17:19 +0000 (17:17 +0300)]
Updated OpenCASCADE to 7.3.0

There are some unresolved issues with:
* Handle_Geom_Geometry casting (added untested downcast() methods)
* Handle_StepData_StepModel cannot be found (disabled STEP export)

Tested the change with Plant3D and CSG. HorizontalTank geometry required
some changes.

Change-Id: I3fd4038572e9d63e2fa0f85000a8c050add9cfe1

4 years agoCreate vtkPolyData without MeshActor instance 06/3006/1
Marko Luukkainen [Thu, 4 Jul 2019 15:13:41 +0000 (18:13 +0300)]
Create vtkPolyData without MeshActor instance

gitlab #8

Change-Id: I3b8d7fa1d56d134a7cbbf4b71cf5543340999fd6

4 years agoSupport for capped tube 05/3005/1
Marko Luukkainen [Thu, 4 Jul 2019 15:09:53 +0000 (18:09 +0300)]
Support for capped tube

Also, added possibility to change length wise resolution of ArcCylinder

gitlab #7

Change-Id: I61600b0d07dda44ac9a692138927116cf491af1f

4 years agoProjection matrices following OpenGL spec 08/2908/1
Marko Luukkainen [Mon, 27 May 2019 16:23:51 +0000 (19:23 +0300)]
Projection matrices following OpenGL spec

gitlab #6

Change-Id: Ia2fe79cb6beaeba65e51de1c5830427533441aed

4 years agoAdjustments to picking and camera orientation on focus command 06/2906/1
Marko Luukkainen [Mon, 27 May 2019 07:54:40 +0000 (10:54 +0300)]
Adjustments to picking and camera orientation on focus command

gitlab #5

Change-Id: If199287d5ef83f5d1ad410c8175cc4af67b1e50a

4 years agoAdd split point actor to deletables to prevent memory leak 05/2905/1
Marko Luukkainen [Mon, 27 May 2019 07:51:19 +0000 (10:51 +0300)]
Add split point actor to deletables to prevent memory leak

gitlab #4

Change-Id: I17c5a5286874eb7cad7fb24a77607f0f5da32c15

4 years agoRevised native library loading for VTK 98/2898/1 release/1.39.0
Marko Luukkainen [Mon, 13 May 2019 12:06:48 +0000 (15:06 +0300)]
Revised native library loading for VTK

gitlab #2

Change-Id: If910a60f83ae69d3df81575262a69ac7ce2791c8

4 years agoVTK.Rendering plug-in + win64 fragment 97/2897/1
Marko Luukkainen [Mon, 13 May 2019 12:06:02 +0000 (15:06 +0300)]
VTK.Rendering plug-in + win64 fragment

VTK.Rendering allows SWT-based VTK view, without AWT tread.

gitlab #2

Change-Id: Ida8a60eb56c012ea96be874888d0e72559e76204

5 years agoRefactoring small features to common classes 79/2879/1
Marko Luukkainen [Mon, 6 May 2019 10:48:39 +0000 (13:48 +0300)]
Refactoring small features to common classes

ContextMenuListener - hook awt mouse event for context menu
AxesDisplay - Axes widget to lower left corner of the 3d view

gitlab #3

Change-Id: I8c92f8debfa958f0fc0103d66e37b79e05d81d17

5 years agovtk 8.2.0 API changes 78/2878/1
Marko Luukkainen [Mon, 6 May 2019 10:16:16 +0000 (13:16 +0300)]
vtk 8.2.0 API changes

gitlab #2

Change-Id: Ie4041b690cae32cd4f0615233cf03edc013282fc

5 years agovtk 8.2.0 77/2877/1
Marko Luukkainen [Mon, 6 May 2019 10:10:13 +0000 (13:10 +0300)]
vtk 8.2.0

gitlab #2

Change-Id: Id7553b80dfcc12dc2a81b0d05d17ae9f13bb3b7f

5 years agoRemove vtk 5.8 76/2876/1
Marko Luukkainen [Mon, 6 May 2019 09:53:14 +0000 (12:53 +0300)]
Remove vtk 5.8

gitlab #2

Change-Id: Ia80292b929a50038dddfb590e20b36a88d8bfcc9

5 years agoMesh API to use Tuple3d instead of Vector3d 46/2846/1 release/1.38.0
Marko Luukkainen [Mon, 8 Apr 2019 15:48:28 +0000 (18:48 +0300)]
Mesh API to use Tuple3d instead of Vector3d

Added ArcCylinder for creating cylinder shapes bend on an arc of circle

Change-Id: I09713df59e7cbf0d6805f055a039af46d57934d6

5 years agoGitignores 40/2840/1
Marko Luukkainen [Thu, 4 Apr 2019 13:38:03 +0000 (16:38 +0300)]
Gitignores

Change-Id: Ib9ae67ebaf10777693b45c8e0b1be9ea157914cb

5 years agoSome api and build changes 39/2839/1
Marko Luukkainen [Thu, 4 Apr 2019 13:37:43 +0000 (16:37 +0300)]
Some api and build changes

Change-Id: I85b1ffae0255398050dd45d847fe03e26828972c

5 years agoMerge "Publish Plant3D feature"
Marko Luukkainen [Thu, 4 Apr 2019 13:00:40 +0000 (13:00 +0000)]
Merge "Publish Plant3D feature"

5 years agoPublish Plant3D feature 32/2832/1
Marko Luukkainen [Thu, 4 Apr 2019 12:55:24 +0000 (15:55 +0300)]
Publish Plant3D feature

Change-Id: If41206e5e25a27b027e4fb260d9ed43b1cbdf951

5 years agoChanged SimanticsUI use to Simantics private/psaas release/1.37.0
Tuukka Lehtonen [Fri, 7 Dec 2018 11:31:48 +0000 (13:31 +0200)]
Changed SimanticsUI use to Simantics

gitlab #1

(cherry picked from commit cda637e8caba5a58f2cc5ec0a435070f628fb2fb)

5 years agoAdded LICENSE release/1.35.0 release/1.35.1
Tuukka Lehtonen [Thu, 14 Jun 2018 11:43:41 +0000 (14:43 +0300)]
Added LICENSE

6 years agoIncluded old javax.vecmath 1.5.2 to org.simantics.g3d.feature release/1.33.0 release/1.34.0 release/1.34.1 release/1.34.2
Tuukka Lehtonen [Wed, 14 Feb 2018 22:36:53 +0000 (00:36 +0200)]
Included old javax.vecmath 1.5.2 to org.simantics.g3d.feature

The library is used as is without modifications under the
terms of the "CLASSPATH" EXCEPTION TO THE GPL so it is OK
to include it here in this otherwise EPL'ed software.

6 years agoInclude old 64-bit versions of org.jcae.opencascade and vtk bundles
Tuukka Lehtonen [Fri, 29 Sep 2017 19:01:38 +0000 (22:01 +0300)]
Include old 64-bit versions of org.jcae.opencascade and vtk bundles

Import all the pieces in the repository to keep everything needed for building
in one place for now.

Removed excluded-from-build objmap code from org.simantics.g3d which
failed to compile with Tycho and is no longer needed anyway.

For now I We might want to consider throwing windows 32-bit support out of the window.