Loading TechIDaily…
Loading TechIDaily…
Sandflow / Industrial
Hosted on Hugging Face · Runtime not tested

Categories aid discovery; they are not runtime certifications.
Download the complete package with its dependencies.
Browse package on HF ↗Parametric Python program with 3 kinematic joints (UsdPhysics). Constructed for autonomous simulation and LLM synthesis.
import sand3d as s3d
import math
def wall_task_lamp():
wall = wall_mount()
upper = upper_arm()
f1 = s3d.local(wall, 42, 0, 220)
upper = s3d.at(upper, on=f1)
s3d.joint(
class="tok-string">"shoulder_hinge", upper, f1, kind=class="tok-string">"revolute", axis=class="tok-string">"+Y", range=(0, math.degrees(1.15))
)
fore = forearm()
f2 = s3d.local(upper, 229, 0, 0)
fore = s3d.at(fore, on=f2)
s3d.joint(
class="tok-string">"elbow_hinge",
fore,
f2,
kind=class="tok-string">"revolute",
axis=class="tok-string">"+Y",
range=(math.degrees(-1.05), math.degrees(0.20)),
)
sh = shade()
f3 = s3d.local(fore, 191, 0, 0)
sh = s3d.at(sh, on=f3)
s3d.joint(
class="tok-string">"shade_pivot",
sh,
f3,
kind=class="tok-string">"revolute",
axis=class="tok-string">"+Y",
range=(math.degrees(-0.85), math.degrees(0.65)),
)
return s3d.assembly(class="tok-string">"wall_task_lamp", wall, upper, fore, sh)
def wall_mount():
a = s3d.material(
s3d.extrude(class="tok-string">"backplate", s3d.rect(16, 90), 220, both=True), class="tok-string">"painted_metal", color=class="tok-string">"class="tok-comment">#2e3036"
)
b = s3d.material(
s3d.extrude(class="tok-string">"spine_rib", s3d.rect(18, 34), 100, both=True), class="tok-string">"painted_metal", color=class="tok-string">"class="tok-comment">#2e3036"
)
c = s3d.material(
s3d.extrude(class="tok-string">"shoulder_bridge", s3d.rect(12, 28), 16, both=True), class="tok-string">"plastic", color=class="tok-string">"class="tok-comment">#141416"
)
d = s3d.material(
s3d.extrude(class="tok-string">"shoulder_upper_cheek", s3d.rect(16, 6), 48, both=True),
class="tok-string">"plastic",
color=class="tok-string">"class="tok-comment">#141416",
)
e = s3d.material(
s3d.extrude(class="tok-string">"shoulder_lower_cheek", s3d.rect(16, 6), 48, both=True),
class="tok-string">"plastic",
color=class="tok-string">"class="tok-comment">#141416",
)
return s3d.group(
class="tok-string">"wall_mount",
s3d.at(a, x=8, z=170),
s3d.at(b, x=25, z=220),
s3d.at(c, x=28, z=220),
s3d.at(d, x=42, y=10, z=220),
s3d.at(e, x=42, y=-10, z=220),
)
def upper_arm():
black = class="tok-string">"class="tok-comment">#141416"
steel = class="tok-string">"class="tok-comment">#2e3036"
return s3d.group(
class="tok-string">"upper_arm",
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"rear_hub", s3d.circle(12), 14, both=True), rx=90),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"beam", s3d.circle(12), 210, both=True), x=111, ry=90),
class="tok-string">"painted_metal",
color=steel,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"elbow_bridge", s3d.rect(18, 28), 12, both=True), x=211),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"elbow_upper_cheek", s3d.rect(18, 6), 38, both=True), x=229, y=10),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"elbow_lower_cheek", s3d.rect(18, 6), 38, both=True), x=229, y=-10),
class="tok-string">"plastic",
color=black,
),
)
def forearm():
black = class="tok-string">"class="tok-comment">#141416"
steel = class="tok-string">"class="tok-comment">#2e3036"
return s3d.group(
class="tok-string">"forearm",
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"rear_hub", s3d.circle(12), 14, both=True), rx=90),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"beam", s3d.circle(12), 170, both=True), x=91, ry=90),
class="tok-string">"painted_metal",
color=steel,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"tip_bridge", s3d.rect(20, 28), 12, both=True), x=173),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"pivot_upper_cheek", s3d.rect(16, 6), 34, both=True), x=191, y=10),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"pivot_lower_cheek", s3d.rect(16, 6), 34, both=True), x=191, y=-10),
class="tok-string">"plastic",
color=black,
),
)
def shade():
black = class="tok-string">"class="tok-comment">#141416"
shell = s3d.revolve(class="tok-string">"shade_shell", [(18, -33), (28, -24), (32, 6), (33, 32)])
rim = s3d.revolve(class="tok-string">"front_rim", [(36, -4), (39, 0), (39, 4)])
return s3d.group(
class="tok-string">"shade",
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"pivot_hub", s3d.circle(12), 14, both=True), rx=90),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"neck", s3d.circle(16), 40, both=True), x=22, ry=90),
class="tok-string">"plastic",
color=black,
),
s3d.material(
s3d.at(s3d.extrude(class="tok-string">"shade_collar", s3d.circle(36), 14, both=True), x=49, ry=90),
class="tok-string">"plastic",
color=black,
),
s3d.material(s3d.at(shell, x=89, ry=90), class="tok-string">"plastic", color=class="tok-string">"class="tok-comment">#e8e6d9"),
s3d.material(s3d.at(rim, x=125, ry=90), class="tok-string">"aluminium", color=class="tok-string">"class="tok-comment">#d1d1cc"),
)🚀 Sand3D Modeling Engine: Open Interactive Sand3D Explorer Space ↗
Sandflow Sand3D Library; CC-BY-4.0
Hosted on Hugging Face: SZFSPC/techidaily-resourcesba1baf9d89ddf57433d7c47cb461f6d8883067a1
Revision: ba1baf9d89ddf57433d7c47cb461f6d8883067a1
licenseSHA-256:
commercialPermittedSHA-256:
notesSHA-256: