How to deform an IFC model

Blender 5.01 + Bonsai 0.8.4. When trying to link a lattice to IFC model i get an error: failed to set value So the lattice can't connect to the IFC Model. I want to deform a building so it matches with a background foto of the same building using fspy. What would be the best practices to deform the building?

Comments

  • If the dimensions of the IFC are correct, shouldn't it usually fit to the building on the foto, once the camera is matched ?

    Do you really need to use the lattice for deforming or more as a tool for orienting and matching to the foto ?

    If I would need to deform a building I would save and open the Blend file, which should eliminate all IFC geometry restrictions.

  • how to convert to a 'dumb' blender file...

    zoomer
  • Hi zoomer thanks for your responce,
    Yes, you're right, but I'm using a portion of a 360-degree image. The match between the fspy image and the model is almost perfect, but for fine-tuning, I was thinking of using a lattice modifier for deforming. I saved the IFC file as a .blend file. I opened the .blend file, selected the entire model and then used Shift A to add a lattice, scaled the lattice and placed the model inside the lattice. Set the resolution to U=6, V=6, and W=6, and set the interpolation to B-spline. With the model selected I added a lattice modifier and tried to link the lattice modifier to the model, which resulted in the error "failed to set value!"

    Hi theoryshaw thanks for your response,
    I also tried your solution Convert to Blender File, saved it and reopened the file, selected the entire model and then used Shift A to add a lattice, scaled the lattice and placed the model inside the lattice. Set the resolution to U=6, V=6, and W=6, and set the interpolation to B-spline. With the model selected I added a lattice modifier and tried to link the lattice modifier to the model, which resulted in the error "failed to set value!" when clicked on Convert to Blender File nothing changed so is my procedure correct? Is Convert to Blender File the same as Save as Blend File ?

  • you probably need to manually unlock things...
    alt+click on the lock...
    https://community.osarch.org/uploads/editor/lw/nhbbbk81q7lr.mp4

  • edited December 2025

    I don't think the lock was the problem.
    Try this...

    walpa
  • Hi theoryshaw, Yes this is the solution,
    Save the IFC file as .blend file. Then open the .blend file, selected the entire model and then used Shift A to add a lattice.
    Scale the lattice and place the model inside the lattice.
    Select one element from the model and add a lattice modifier. Link the lattice to that element.
    Select - Select All By Type - Mesh and next CTRL- L - Copy Modifiers. **
    Change from **Object Mode to Edit Mode
    select vertices in the lattice Press G and move the mouse to deform.
    Thank you very much for your support.

    zoomerwalpa
Sign In or Register to comment.