Jump to content

Render primitive only in wireframe


Recommended Posts

Isn't it just a case of not closing the primitives?

In some cases yes, like drawing a line or a plane (just repeating the last point). But in the particular case of a GU_PrimSphere doesn't seem to work. I'm building a sphere like this:

        GU_PrimSphereParms params;
	params.gdp 		= gdp;
	params.xform 		= UT_DMatrix4::getIdentityMatrix();
	params.ppt = ppt;
	params.type = GEO_PATCH_ROWCOL;

	//
	// Represent the joint simply as a geo sphere
	//
	GEO_Primitive* prim = GU_PrimSphere::build( params );

On the params.type I've tried all cases but {GEO_PATCH_TRIANGLE, GEO_PATCH_QUADS}. There doesn't seem to be an option for "open". It makes sense since there is no such thing as an open sphere. When I toggle to wireframe mode I get 2 circles and a cross, which I would like to have all the time.

Any clues? I guess it's one of those Houdini "hidden" functions... :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...