LDraw file generation


RE: LDraw file generation
#7
(2019-07-30, 20:24)Ed Bardet Wrote: The question is. Several posts have said that the rotation takes place from the center of the brick. If this is the case the round brick connected to it should have moved. If the round brick does not move, the center of rotation must be at the center of the selected stud on the 1x2 brick, not it's geometric center.

(Note that your images didn't show up for some reason. So I'm not sure I understand what you did.)

I can't find any posts in this thread stating what I italicized above. Both Roland and I stated that each part has its own origin, and I stated that the origin is not likely to be in the center of the part. Roland stated that the matrix is applied relative to the origin of the referenced part. To the best of my knowledge, all of these things are true.

Each LDraw file (be it a primitive, a sub-part, a part, a sub-model, or a model) has its own coordinate system. Aside from the top-level model, that coordinate system is modified by the matrix in the type 1 line that specifies the sub-file. Based on what you say, it sounds like the LDraw file generated by Stud.io is in MPD format and contains sub-files. I can't see any other way that rotating one brick could rotate "the rest of the wall". If that is the case, then the matrix that is applied to that sub-file accomplishes the rotation, and all of the contents of that file would then be un-rotated internally.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDraw file generation - by Ed Bardet - 2019-07-29, 15:41
RE: LDraw file generation - by Roland Melkert - 2019-07-29, 19:30
RE: LDraw file generation - by Travis Cobbs - 2019-07-29, 19:50
RE: LDraw file generation - by Ed Bardet - 2019-07-29, 21:16
RE: LDraw file generation - by Ed Bardet - 2019-07-30, 20:24
RE: LDraw file generation - by Gerald Lasser - 2019-07-30, 22:10
RE: LDraw file generation - by Ed Bardet - 2019-07-30, 22:14
RE: LDraw file generation - by Travis Cobbs - 2019-07-30, 22:13
RE: LDraw file generation - by Ed Bardet - 2019-07-30, 22:43
RE: LDraw file generation - by Ed Bardet - 2019-07-31, 11:21
RE: LDraw file generation - by Ed Bardet - 2019-07-31, 21:55
RE: LDraw file generation - by Willy Tschager - 2019-08-02, 16:30
RE: LDraw file generation - by Orion Pobursky - 2019-08-02, 16:40
RE: LDraw file generation - by Willy Tschager - 2019-08-03, 10:01
RE: LDraw file generation - by Johann Eisner - 2019-08-03, 10:26
RE: LDraw file generation - by Ed Bardet - 2019-07-31, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)