#4136 closed defect (fixed)
3d support for simple "coffee cup" animation
Reported by: | Dietmar Winkler | Owned by: | Volker Waurich |
---|---|---|---|
Priority: | high | Milestone: | 1.11.0 |
Component: | OMEdit | Version: | |
Keywords: | Cc: | Volker Waurich |
Description
In my class I use a small example of a coffee cup by Michael Tiller. The library which Michael Tiller build contains at first very simple models which get extended and in the end there is a CupOfCoffeeAnimation
example that unfortunately is not visualised at all by the latest nightly of OMEdit.
It simulates fine just the 3d visualisation is missing.
Opening CupOfCoffeeAnimation
reports the following Errors:
[2] 14:25:46 Translation Error [Modelica.Mechanics.MultiBody.Visualizers: 1979:8-1980:83]: PartialModelicaServices is partial, name lookup is not allowed in partial classes. [3] 14:25:46 Translation Error [ModelicaServices: 583:5-584:81]: PartialModelicaServices is partial, name lookup is not allowed in partial classes.
Attachments (2)
Change History (20)
by , 8 years ago
Attachment: | BasicModelica.mo added |
---|
comment:1 by , 8 years ago
Cc: | added |
---|
comment:2 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
I dont get this error but I found an issue anyway. The modelname contains Ani"mat"ion which interferes with the filenameparsing of mat files ;)
Besides that, there is an issue with r_shape object. I will have a look.
by , 8 years ago
Attachment: | animation.png added |
---|
comment:5 by , 8 years ago
Mhh not really sure how I can help further. All I can say is that I get an empty animation window and the scripting error:
[2] 15:34:11 Scripting Error Could not find the visual XML file BasicModelica.CupOfCoffeeAnion_visual.xml.
When "Simulation with Animation" is clicked. this is with OMEdit version 1.11.0~dev-231-g965594a
On Ubuntu 16.04.1 64bit.
comment:6 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This is fixed in ccaec3f/OMEdit.
comment:7 by , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Besides that, there is an issue with r_shape object. I will have a look.
Sorry just closed the ticket in a haste. Reopening it now because of the above comment from Volker.
comment:8 by , 8 years ago
Ah right now I see. So the version I used DOES have the issue because of the MAT name. Renaming the model I get the same result like shown in the screen shot with the "floating" cup wall :-)
comment:11 by , 8 years ago
I addedPR56.
There 2 variants of visualizing pipes in Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape . Either with "pipe" or "pipecylinder" as shape type. Can anyone tell me the difference?
comment:12 by , 8 years ago
Have a look at the info layer of Modelica.Mechanics.MultiBody.Types.ShapeType
. There is an image that shows what pipe (hollow pipe) is and what cylinder (filled) is. There is actually no "pipecylinder". But neither is there in the cup of coffee model.
comment:13 by , 8 years ago
Check out the annotation of type Shape.Type:
"Type of shape (box, sphere, cylinder, pipecylinder, cone, pipe, beam, gearwheel, spring, <external shape>)"
}
I have implemented it since I had models which used pipecylinder.
comment:15 by , 8 years ago
Right. So what kind of shape is that. Also this does not explain why the cup wall is floating right?
comment:16 by , 8 years ago
I obviously haven't testet pipes before. There have been pipecylinders only in MSL. The fix is to handle pipes like pipecylinders.
comment:17 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:18 by , 8 years ago
Milestone: | Future → 1.11.0 |
---|
BasicModelica library by Michael Tiller