uki-dev / blendquery

CadQuery and Build123d integration for Blender
36 stars 5 forks source link

Relative locations of objects in an assembly are not respected #8

Open lenianiva opened 2 months ago

lenianiva commented 2 months ago

Consider this:

import cadquery as cq

def makeBox():
    return (
        cq.Solid.makeBox(1, 1, 1)
    )
def makeCylinder():
    return (
        cq.Solid.makeCylinder(height=5, radius=0.2)
    )
result = (
    cq.Assembly()
    .add(makeBox(), name="b")
    .add(makeCylinder(), name="c", loc=cq.Location((0, 0, 3)))
)

When you put this into Blender, the relative locations of these two objects are not respected.

bug

I think we can get this solved along with introducing per member material for each object in an assembly. If the author is fine with this I can write a patch.