| Materials list [message #25362] Mon, 28 March 2011 14:31 UTC |
 |
|
Hi all,
I have a question about the materials I get when I call the 'getPrinters' function.
The xml output is roughly the following (without all the namespaces):
<item type="Material">
<id type="integer">31</id>
<title type="string">Gold Plated Matte</title>
<description type="string"/>
<base_color nil="true"/>
<specular_color nil="true"/>
<shineness nil="true"/>
<opacity nil="true"/>
<translucency nil="true"/>
<refractive_index nil="true"/>
<startup_cost type="float">0</startup_cost>
</item>
Seems to me there is a lot of information missing per material, currently I'm making an app to let users create 3d models for shapeways and would like to have the following options:
- base_color (in order to preview the materials color on the model)
- startup_cost
- cost_per_cm3
It would be nice to give the user an insight in the costs based on material and size selection, before uploading the entire model.
Is this possible?
Kind regards,
Sjoerd van den Berg.
|
|
|
| Re: Materials list [message #25412 is a reply to message #25362 ] Tue, 29 March 2011 15:56 UTC |
  |
|
Hey Sjoerd,
Yes it is possible to get the price. You have to use "getModelPrice" for that. Please see API doc for more info.
The reason it is interactive is because the price model is not completely linear for some materials. For instance we charge startup costs, cost for the 1st cm3 or a density discount for larger parts. It is best that you use the Shapeways price calculation algorithm for that available through "getModelPrice".
The missing base colors is a mistake on our part. I will ask to have that fixed asap.
What are you trying to create using the Shapeways API?
Let me know if you need more help!
Best,
Robert
Robert Schouwenburg
|
|
|
| Re: Materials list [message #25431 is a reply to message #25412 ] Wed, 30 March 2011 08:39 UTC |
  |
|
Hi Robert,
Thanks for the tip!
I don't think i can state online what I'm creating (due to secracy issues, and what not), but it's in close communication with shapeways (the dutch department, if I'm not mistaken).
You'll see it online soon 
|
|
|
| Re: Materials list [message #25432 is a reply to message #25431 ] Wed, 30 March 2011 11:26 UTC |
  |
|
Heya Sjorro,
be sure to let us know when you are ready to launch so we can spread the word...
Duann Scott
|
|
|
|