<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>OpenScad Library Probleme?</title>
        <description> Wer benutzt hier OpenScad unter Linux? Ich wollte mir einen Coin erstellen mit diesem Code

// Challenge coin generator.
// All dimensions in millimeters.

// preview[view:south, tilt:top diagonal]

use 

/* [Text] */
TOP_TEXT = &quot;Hello, World&quot;;
BOTTOM_TEXT = &quot;August 2013&quot;;
REVERSE_TOP = &quot;Reverse Top&quot;;
REVERSE_BOTTOM = &quot;Bottom&quot;;

/* [Coin Properties] */
// (mm)
DIAMETER = 39;
// (mm)
THICKNESS = 3.2;

/* [Text Properties] */

// Letter height (mm)
TEXT_HEIGHT = 5.0;
// ratio (1.0 is nominal)
SPACING = 0.8;
// Print height (mm)
RELIEF = 1.0;

/* [Hidden] */

// Epsilon
E = 0.01;

module coin(
    top_text=&quot;&quot;,             // Text of centered top text
    bottom_text=&quot;&quot;,          // Text of centered bottom text
    rev_top_text=&quot;&quot;,         // Reverse top text
    rev_bottom_text=&quot;&quot;,      // Reverse bottom text
    size=DIAMETER,           // Diameter of coin
    thickness=THICKNESS,     // Total coin thickness
    relief=RELIEF,           // Height of raised (relief) features
    text_height=TEXT_HEIGHT, // Height of a text letter
    spacing=SPACING,         // 1.0 == nominal spacing (ratio)
    rim_width=0.5            // Rim edge thickness
    ) {
  difference() {
    union() {
      cylinder(r=size / 2, h=thickness - relief, $fa=3);
      translate([0, 0, thickness - relief - E])
        face(top_text, bottom_text, size, relief + E, text_height, spacing, rim_width);
      }
    translate([0, 0, relief])
      rotate(a=180, v=[1, 0, 0])
      face(rev_top_text, rev_bottom_text, size, relief + E, text_height, spacing, rim_width,
           rim=false);
  }
}

module face(
    top_text=&quot;&quot;,      // Text of centered top text
    bottom_text=&quot;&quot;,   // Text of centered bottom text
    size=39,          // Diameter of coin
    relief=0.5,       // Height of raised (relief) features
    text_height=5.0,  // Height of a text letter
    spacing=1.0,      // 1.0 == nominal spacing (ratio)
    rim_width=0.5,    // Rim edge thickness
    rim=true,         // Boolean control drawing rim ridge
    image_file=&quot;&quot;     // Optional face image (DXF file)
    ) {
  if (rim) {
    ring(r=size / 2, thickness=rim_width, height=relief);
  }
  arc_text(top_text, size / 2 - rim_width * 4, text_height, relief, spacing, true);
  arc_text(bottom_text, size / 2 - rim_width * 4, text_height, relief, spacing, false);
  if (image_file != &quot;&quot;) {
    linear_extrude(height=relief, center=true, convexity=10)
      import_dxf(file=image_file, layer=&quot;none&quot;);
  }
}

module arc_text(
    text,
    r,
    text_height=3.0,
    height=1.0,
    spacing=1.0,
    top=true
    ) {
  ang = spacing * atan2(text_height, r);
  start_ang = (len(text) - 1) / 2 * ang;
  ang_sgn = top ? -1 : 1;
  offset_sgn = top ? 1 : -1;
  for (i = [0 : len(text) - 1]) {
    rotate(a=ang_sgn * (ang * i - start_ang), v=[0, 0, 1])
      translate([0, offset_sgn * (r - text_height / 2), height / 2])
        write(text, h=text_height, t=height, center=true);
  }
}

// Ring around origin (at z=0)
module ring(r, thickness, height) {
  translate([0, 0, height / 2]) {
    difference() {
      cylinder(h=height, r=r, $fa=3, center=true);
      cylinder(h=height + 2 * E, r=r - thickness, $fa=3, center=true);
    }
  }
}

coin(top_text=TOP_TEXT,
     bottom_text=BOTTOM_TEXT,
     rev_top_text=REVERSE_TOP,
     rev_bottom_text=REVERSE_BOTTOM
     );


Wenn ich dann die F5 Taste drücke das ich die fertige Schrift angezeigt bekomme schreibt er mir den Fehler aus WARNING: Can&#039;t open library &#039;write/Write.scad&#039;. und ignoriert das Modul Write. Habe es auch mal in der VM unter Windows 7 OpenScad installiert und dort geschaut und auch der selbe Fehler. Installiert ist: OpenSCAD version 2015.03-1 unter Linux und bei Windows: OpenSCAD version 2015.03-2</description>
        <link>https://reprap.org/forum/read.php?247,601946,601946#msg-601946</link>
        <lastBuildDate>Mon, 20 Apr 2026 21:13:13 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?247,601946,602123#msg-602123</guid>
            <title>Re: OpenScad Library Probleme?</title>
            <link>https://reprap.org/forum/read.php?247,601946,602123#msg-602123</link>
            <description><![CDATA[ Danke für den Link und Info! Werde es mir in den nächsten Tagen ansehen und schauen das ich zum laufen bringe.]]></description>
            <dc:creator>mafe68</dc:creator>
            <category>Software</category>
            <pubDate>Tue, 29 Dec 2015 11:23:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?247,601946,601968#msg-601968</guid>
            <title>Re: OpenScad Library Probleme?</title>
            <link>https://reprap.org/forum/read.php?247,601946,601968#msg-601968</link>
            <description><![CDATA[ Das Modul write fehlt bei Dir.<br />
[<a href="http://forums.reprap.org/read.php?313,513851,514649" target="_blank"  rel="nofollow">forums.reprap.org</a>]<br />
Im vorletzten Beitrag (von dmould) findest Du die Dateien.<br />
<br />
Herzl. Grüße]]></description>
            <dc:creator>AlterBastler</dc:creator>
            <category>Software</category>
            <pubDate>Tue, 29 Dec 2015 03:53:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?247,601946,601946#msg-601946</guid>
            <title>OpenScad Library Probleme?</title>
            <link>https://reprap.org/forum/read.php?247,601946,601946#msg-601946</link>
            <description><![CDATA[ Wer benutzt hier OpenScad unter Linux? Ich wollte mir einen Coin erstellen mit diesem Code<br />
<pre class="bbcode">
// Challenge coin generator.
// All dimensions in millimeters.

// preview[view:south, tilt:top diagonal]

use 

/* [Text] */
TOP_TEXT = "Hello, World";
BOTTOM_TEXT = "August 2013";
REVERSE_TOP = "Reverse Top";
REVERSE_BOTTOM = "Bottom";

/* [Coin Properties] */
// (mm)
DIAMETER = 39;
// (mm)
THICKNESS = 3.2;

/* [Text Properties] */

// Letter height (mm)
TEXT_HEIGHT = 5.0;
// ratio (1.0 is nominal)
SPACING = 0.8;
// Print height (mm)
RELIEF = 1.0;

/* [Hidden] */

// Epsilon
E = 0.01;

module coin(
    top_text="",             // Text of centered top text
    bottom_text="",          // Text of centered bottom text
    rev_top_text="",         // Reverse top text
    rev_bottom_text="",      // Reverse bottom text
    size=DIAMETER,           // Diameter of coin
    thickness=THICKNESS,     // Total coin thickness
    relief=RELIEF,           // Height of raised (relief) features
    text_height=TEXT_HEIGHT, // Height of a text letter
    spacing=SPACING,         // 1.0 == nominal spacing (ratio)
    rim_width=0.5            // Rim edge thickness
    ) {
  difference() {
    union() {
      cylinder(r=size / 2, h=thickness - relief, $fa=3);
      translate([0, 0, thickness - relief - E])
        face(top_text, bottom_text, size, relief + E, text_height, spacing, rim_width);
      }
    translate([0, 0, relief])
      rotate(a=180, v=[1, 0, 0])
      face(rev_top_text, rev_bottom_text, size, relief + E, text_height, spacing, rim_width,
           rim=false);
  }
}

module face(
    top_text="",      // Text of centered top text
    bottom_text="",   // Text of centered bottom text
    size=39,          // Diameter of coin
    relief=0.5,       // Height of raised (relief) features
    text_height=5.0,  // Height of a text letter
    spacing=1.0,      // 1.0 == nominal spacing (ratio)
    rim_width=0.5,    // Rim edge thickness
    rim=true,         // Boolean control drawing rim ridge
    image_file=""     // Optional face image (DXF file)
    ) {
  if (rim) {
    ring(r=size / 2, thickness=rim_width, height=relief);
  }
  arc_text(top_text, size / 2 - rim_width * 4, text_height, relief, spacing, true);
  arc_text(bottom_text, size / 2 - rim_width * 4, text_height, relief, spacing, false);
  if (image_file != "") {
    linear_extrude(height=relief, center=true, convexity=10)
      import_dxf(file=image_file, layer="none");
  }
}

module arc_text(
    text,
    r,
    text_height=3.0,
    height=1.0,
    spacing=1.0,
    top=true
    ) {
  ang = spacing * atan2(text_height, r);
  start_ang = (len(text) - 1) / 2 * ang;
  ang_sgn = top ? -1 : 1;
  offset_sgn = top ? 1 : -1;
  for (i = [0 : len(text) - 1]) {
    rotate(a=ang_sgn * (ang * i - start_ang), v=[0, 0, 1])
      translate([0, offset_sgn * (r - text_height / 2), height / 2])
        write(text<i>, h=text_height, t=height, center=true);
  }
}

// Ring around origin (at z=0)
module ring(r, thickness, height) {
  translate([0, 0, height / 2]) {
    difference() {
      cylinder(h=height, r=r, $fa=3, center=true);
      cylinder(h=height + 2 * E, r=r - thickness, $fa=3, center=true);
    }
  }
}

coin(top_text=TOP_TEXT,
     bottom_text=BOTTOM_TEXT,
     rev_top_text=REVERSE_TOP,
     rev_bottom_text=REVERSE_BOTTOM
     );

</i></pre>
Wenn ich dann die F5 Taste drücke das ich die fertige Schrift angezeigt bekomme schreibt er mir den Fehler aus WARNING: Can't open library 'write/Write.scad'. und ignoriert das Modul Write. Habe es auch mal in der VM unter Windows 7 OpenScad installiert und dort geschaut und auch der selbe Fehler. Installiert ist: OpenSCAD version 2015.03-1 unter Linux und bei Windows: OpenSCAD version 2015.03-2]]></description>
            <dc:creator>mafe68</dc:creator>
            <category>Software</category>
            <pubDate>Tue, 29 Dec 2015 03:01:43 -0500</pubDate>
        </item>
    </channel>
</rss>
