2007-11-14 01:04 PM - last edited on 2023-05-11 02:34 PM by Noemi Balogh
2007-11-20 05:01 PM
laszlonagy wrote:Do you still remember HOW? I checked with some GS veterans and they don't remember either ...Djordje wrote:Yes, it needs to be done with the CUTPLANE command the way Djordje described.
AAAARGH! I am getting old ... can someone check whether there is a CUTPLANE GDL command?
2007-11-20 05:20 PM
Djordje wrote:The cutplane command inside a GDL object/script only affects elements generated by the object. So...I suspect that the 'old' method required that the entire building be saved as an object, and then the building object would be CALLed by the animated cutting plane object - which simply moved the cutting plane along a specified axis a specified amount (parameters) each time the animation frame (N_ in the old naming) changed.
Do you still remember HOW? I checked with some GS veterans and they don't remember either ...😉
2007-11-20 05:29 PM
HeightPerFrame = (EndHeight-StartHeight)/(EndFrame - StartFrame) !!!This is how much the Cutplane raises with each frame IF GLOB_FRAME_NR>=StartFrame AND GLOB_FRAME_NR<=EndFrame THEN CutHeight=StartHeight+(GLOB_FRAME_NR-StartFrame)*HeightPerFrame ADDZ CutHeight CUTPLANE DEL 1 ENDIF ... ... Here comes the saved 3D Geometry ... ... IF GLOB_FRAME_NR>=StartFrame AND GLOB_FRAME_NR<=EndFrame THEN CUTEND ENDIFThe Rebuild Model for each Frame checkbox must be checked in the Create Fly-Through Dialog.
2007-11-20 05:34 PM
Karl wrote:Probably I would use the Cutting Box object, too, and SEO with it with upward extrusion.
Today, I would use SEOps and keep the model live. The cutting box object would just change its size dynamically by frame after initial parameter setup and physical positioning.
I don't have either method implemented...so these are just my ideas of how I would go about it.😉
Cheers,
Karl
2007-11-20 09:43 PM
laszlonagy wrote:I have learned not to guess what will happen using logic, since what AC actually does vs what I expect it to do is a very often a surprise.
Because if it is on a hiddel layer, it will not regenerate for each frame.
But if it is visible, its wireframe will show in the animation.
What do you think, Karl?
2007-11-20 09:46 PM
laszlonagy wrote:As in my other post (I think we typed at the same time!), a CALL to the object representing the saved model is better I think. Then, the entire cutting plane object becomes a parametric tool. You enter the name of the saved model object as a parameter, as well as params about the nature of the cutting and speed of animation. The resulting cutting object can be reused by anyone without requiring any further GDL programming. I think?
Here comes the saved 3D Geometry
2007-11-20 10:29 PM
2007-11-21 12:29 AM
2007-11-21 12:42 AM
2007-11-21 12:48 AM