一半君的总结纸

听话只听一半君

#36 How can I ensure that a polygon face component is planar?

When creating polygons, enable the ‘Polygons -> Tool Options -> Keep New Faces Planar’ menu option.

Create triangles, or Triangulate quads and n−gons. Triangles are planar by definition.

But of course you knew that. Here’s what you were really looking for:

To “generate” planar faces from existing geometry, select one or more faces and execute the following:

global proc planarizeFacets()
{
  string $facets[] = `filterExpand -sm 34`;

  if ( size( $facets ) )
  {
    polyMoveFacet -localScaleZ 0.0 $facets;
  }
}

NOTE: This will not guarantee that all faces are planar! Planarizing one face will drag with it the vertices shared by adjacent faces, likely making them non-planar. Planarizing the adjacent face(s) will again drag these vertices, likely making the original face non-planar. It’s a vicious circle.

Tuesday, December 05, 2000

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: