Changes between Initial Version and Version 1 of Ticket #5567, comment 5


Ignore:
Timestamp:
2019-07-17T08:48:09Z (5 years ago)
Author:
Francesco Casella

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5567, comment 5

    initial v1  
    11Replying to [comment:3 vwaurich]:
    22> Nevertheless, the scaling of the DXF-files is still wrong and I am unsure, how this should be done correctly. There is a length, width, height attribute which should influence the scaling of the bodies. Using these values as a scaling factor is not correct.
    3 
    4 Indeed. The crankshaft is too short, the pistons are in the wrong place, and the cranks move in decidedly odd way.
    5 
    63> Maybe the outer dimensions of the DXF-File have to be scaled to the given values.
    74
    8 I guess so.
    9 
    10 I checked the documentation of {{{Modelica.Mechanics.MultiBody.Visualizers.AdvancedShape}}}, which describes the interface of the ModelicaServices implementation {{{ModelicaServices.Animation.Shape}}}. It says:
    11   The supported file formats are tool dependent. Most tools support at least DXF-files but may support other format as well (such as stl, obj, 3ds). Since visualization files contain color and other data, the corresponding information in the model is usually ignored. For information about DXF files, see Wikipedia. As a default it is assumed that the DXF coordinates are in the "frame_a"-system and in meters, and that the 3dfaces are two-sided.
    12 
    13 Did you base your implementation on this (rather terse) information?
    14 Unfortunately, it doesn't explain if the idea is that the model shouldn't be scaled at all, or in case it should, how should it. I'd say this text is a bit obscured and should be improved.
    15 
    16 We are currently working towards MSL 4.0.0, so if you think you need more information, I can open a ticket on the MSL issue tracker and ask for clarification. I'd be grateful if you could provide some additional info and/or questions to put there (or, you could do it yourself and I could follow up).
    17 
    18 Thanks!
     5I opened #5593 on this topic.