Modifications

Aller à : navigation, rechercher

Rep Price

1 476 octets ajoutés, 19 juin 2014 à 08:31
aucun résumé de modification
{{Projet
<!--Header-->
|name = Rep_Price
|status = experimental
<!--Image-->
|image =
<!--General-->
|description = fabrication de disque pour platine jouet de type Fisher Price avec boîte à musique.
|license = GPL v3.0
|contributeurs = [[contributeur::Thomas]] |matériaux ingrédients = [[materiau::PLA]],[[materiau::code]],[[materiau::Processing]], [[materiau::openSCAD]]|cadModel =
|url =
}}
Le travail était déjà fait... :-/
 
Tout de même ''fred27'' a partagé une documentation pour réaliser à son tour un magnifique disque, ici sur intstructables:
http://www.instructables.com/id/Custom-records-for-a-70s-toy-record-player/?ALLSTEPS
== Expérimentations ==
J'ai tout d'abord tenté de réalisé réaliser un disque en utilisant la [[ReprapPrusa]] de PiNG ainsi qu'[[OpenScad]] pour créer la forme initiale.
Voici ici le code utilisé pour imprimé imprimer mon premier modèle de disque:
<code>
<code>NoSuchMethodError: You may be using a library that's incompatible to this version of Processing</code>
 
Le problème viendrait de la classe MouseNav3D.java qui utilise une classe Java plus usité dans la dernière version de Processing
 
<tt> Event Handling has changed significantly in 2.0b7. Due to necessary changes in the OpenGL renderer, and to provide better compatibility with Android and JavaScript modes, we've added actual MouseEvent and KeyEvent classes to Processing. In previous releases, the MouseEvent and KeyEvent classes referred to the automatically imported "java.awt.MouseEvent" and "java.awt.KeyEvent". This is no longer the case, so your code will behave a little differently. The OpenGL renderer no longer uses AWT (and therefore doesn't use java.awt events), so it's a necessary change there. On Android, there's no such thing as java.awt. More details on this as I have time to write them up.
 
This also has implications for libraries, and the library developer pages have more information.
 
</tt>
 
Je repasse donc avec succès sur Processing 1.5.1
 
Premier essai d'un export d'une forme simple en .STL
 
<code>
import unlekker.util.*;
import unlekker.modelbuilder.*;
 
MouseNav3D nav;
UGeometry model;
 
void setup () {
size(600, 600, P3D);
 
nav = new MouseNav3D(this);
nav.trans.set(width/2, height/2, 0);
model = Primitive.cylinder(121, 5, 100, true);
}
 
void draw() {
background(100);
 
lights();
 
// call MouseNav3D transforms
nav.doTransforms();
fill(255);
 
model.draw(this);
}
 
public void mouseDragged() {
nav.mouseDragged();
}
 
 
public void keyPressed() {
nav.keyPressed();
 
if(key=='s') {
model.writeSTL(this, "sphere.stl");
}
}
</code>

Menu de navigation