[Sidefx-houdini-list] geometry format for 3d print

kawaldeep kawaldeep at gmail.com
Mon May 1 13:48:22 EDT 2017


echoing what others have said, there is probably something wrong in your
geo.

that said, STL is/was a good format for 3d printing. I posted this simple
script a while ago, so maybe the hou calls are out of date, but maybe this
will help, be sure to triangulate your geo.


def stlWrite(file = "", part=""):
# call as: stlWrite(filename, objNode), triangulate beforehand
        f = open(file, "w")
        f.write("solid \n")
        g = hou.node('/obj/' + part).displayNode().geometry()
        for p in g.prims():
                n  = p.normal()
                v0 = p.vertex(0).point().position()
                v1 = p.vertex(1).point().position()
                v2 = p.vertex(2).point().position()
                f.write("facet normal " + str(n[0]) + " " + str(n[1]) + " "
+ str(n[2]) + "\n")
                f.write("outer loop\n")
                f.write("vertex " + str(v0[0]) + " " + str(v0[1]) + " " +
str(v0[2]) + "\n")
                f.write("vertex " + str(v1[0]) + " " + str(v1[1]) + " " +
str(v1[2]) + "\n")
                f.write("vertex " + str(v2[0]) + " " + str(v2[1]) + " " +
str(v2[2]) + "\n")
                f.write("endloop\n")
                f.write("endfacet\n")
        f.write("end solid \n")
        f.close()





On Mon, May 1, 2017 at 10:03 AM, Jordi Bares <jordibares at gmail.com> wrote:

> PLY may be your friendly printing format but something in your mesh must
> be seriously wrong if you can't save a simple OBJ.
>
> Jb
>
> Sent from my iPhone
>
> > On 1 May 2017, at 17:01, herman02 at netvigator.com wrote:
> >
> > ​
> > thank-you all for the help,
> >
> > jordi bares> the problem is that I couldn't even save into .obj,
> >
> > edward> i use the latest built. this is the following file for the
> submission of the bug. thx.
> > https://drive.google.com/file/d/0BwSzdo0EBEXpb20yOGhlNkdrUE0/
> view?usp=sharing
> >
> > may I ask is there an alternative format that I can save the geometry
> for 3d printing?
> > many thanks.
> >
> > herman
> >
> > ----- Original Message -----
> > From: "Edward Lam" <edward at sidefx.com>
> > To: sidefx-houdini-list at sidefx.com
> > Sent: Monday, May 1, 2017 7:37:43 PM
> > Subject: Re: [Sidefx-houdini-list] geometry format for 3d print
> >
> >> On 5/1/2017 3:47 AM, herman02 at netvigator.com wrote:
> >> - my 3d model is a grid>point vop (add curl noise)> wire, but when I
> save it
> >> as .obj, it crashes and I do not have the problem when I save it as
> .bgeo.
> >
> > Houdini shouldn't be crashing regardless. If you can still reproduce in
> the
> > latest daily build, please submit a bug with your .bgeo.
> >
> > Thanks,
> > -Edward
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> > _______________________________________________
> > Sidefx-houdini-list mailing list
> > Sidefx-houdini-list at sidefx.com
> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list