0
Stl Color
This discussion was imported from CodePlex
cedre wrote at 2013-03-21 12:09:
Hi,
Thankx for your library !!! So great.
I add a Property Color on StLReader and FileModelVisual3D to set the color of the stl imported File.
and do this on the code : this.Materials.Add(MaterialHelper.CreateMaterial(Brush));
where Brush is my property
Do you think you could add this feature on a next release ?
Thankz
Cedre
Thankx for your library !!! So great.
I add a Property Color on StLReader and FileModelVisual3D to set the color of the stl imported File.
and do this on the code : this.Materials.Add(MaterialHelper.CreateMaterial(Brush));
where Brush is my property
Do you think you could add this feature on a next release ?
Thankz
Cedre
objo wrote at 2013-04-15 12:24:
I added a
DefaultMaterial
property, which should be more general than a color. I hope this is ok!cedrelo wrote at 2013-04-15 13:08:
Hi,
Perfect!
It will be include in the next release or is it in the source code now?
Thanks so much.
Perfect!
It will be include in the next release or is it in the source code now?
Thanks so much.
cedrelo wrote at 2013-04-15 13:10:
Ok
i just see your commit of today!!
Thanks
i just see your commit of today!!
Thanks
cedrelo wrote at 2013-05-23 11:25:
Hi thanks
It's ok fot stl reader but you not include the defaultMatertial Property to FileModelVisual3D
so we can't do this :
Thanks
Cedre
It's ok fot stl reader but you not include the defaultMatertial Property to FileModelVisual3D
so we can't do this :
<ht:FileModelVisual3D x:Name="Vehicle" DefaultMaterial="{ht:Material Blue}" />
Could you add it in a next release please ? Thanks
Cedre
objo wrote at 2013-06-07 11:39:
done! I also added
DefaultMaterial
properties to the .off, .obj and .lwo loaders.cedrelo wrote at 2013-06-07 11:57:
Perfect!!
Really Thanks
Really Thanks
cedrelo wrote at 2013-06-07 12:06:
I added SourceChanged on DependencyProperty DefaultMaterial for works with datatemplate3D
/// <summary>
/// The default material property.
/// </summary>
public static readonly DependencyProperty DefaultMaterialProperty =
DependencyProperty.Register(
"DefaultMaterial", typeof(Material), typeof(FileModelVisual3D), new PropertyMetadata(null, SourceChanged));
Customer support service by UserEcho