haplokuon / netDxf

.net dxf Reader-Writer
MIT License
1.01k stars 411 forks source link

Insert Block with non-uniform scale #231

Open subGm opened 4 years ago

subGm commented 4 years ago

Hello, I'm pretty new to this project, so I'm sorry if I repeat an already closed issue. My purpose is to import a block and set a non-uniform scale. Among the Insert Constructors there is only one for uniform scale and I thought to add a new constuctor for my purpose. Is this the only way or there is a more straightforward way?

haplokuon commented 4 years ago

Use the Insert's Scale property.

Insert insert = new Insert(myBlock)
{
    Position = new Vector3(10, 10, 0),
    Scale = new Vector3(1, 2, 1)
};