Wrong thinking. This problem should be difficult to import and export.

Source: Internet
Author: User

--- The normal problem is basically determined by angle.
--- Normal *. * normal *, * Common * problem * n. * problem: ** form * n. * form *, * shape * vt. * form * verdict * n. * ruling *, * conclusion *
---
/*
Polyop. getfaceselection $

P_22 = polyop. getfacenormal $19 -- node: <node = unsupplied>

P_14 = polyop. getfacenormal $151 -- node: <node = unsupplied>

ACOs (DOT p_22 p_14)
*/
--- This can be done from the perspective,

--- This operation is probably because there is a problem with the idea and should be used on existing tools.

FN normal_flipvt face_num =
(
Level1 = modpanel. getcurrentobject ()
If classof level1 = edit_poly or classof level1 = editable_poly then
(

/* Try (selfaces = polyop. getnumfaces level1)
Catch (
Selfaces = $. edit_poly.editpolymod.getnumfaces () -- node: $

)*/

Selfaces = polyop. getfaceselection $
Selfaces = (selfaces as array)
-- Selfaces. numberset
For I in 1 to selfaces. Count do --- * aux. V. vt. * do *, * do *, * do
(
Try ($. editablepoly. setselection # face # {(selfaces [I])})
Catch ($. edit_poly.editpolymod.select # face # {(selfaces [I])})
/* Try ($. editablepoly. setselection # face # {(selfaces [I + 1])})
Catch ($. edit_poly.editpolymod.select # face # {(selfaces [I + 1])}) */
P_22 = polyop. getfacenormal $ (selfaces [I])
/* P_14 = polyop. getfacenormal $ (selfaces [I + 1]) */
P_14 = polyop. getfacenormal $ face_num
If ACOs (FIG)> 130. Then
(
Try ($. editablepoly. setselection # face # {(selfaces [I])})
Catch ($. edit_poly.editpolymod.select # face # {(selfaces [I])})

Try ($. editablepoly. flipnormals 1)
Catch (
$. Edit_poly.editpolymod.buttonop # flipface
)

)

) --- End * n. * end *, * destination * Vt. * end *
)
) --- End * n. * end *, * Target * Vt. * end * function * n. * function *, * Title *, * function *

Try (destroydialog gt_yongchao_normal) catch ()
--- In my opinion, yingaichong has been put to an end at the beginning.
Rolout gt_yongchao_normal "gaitian-strong UV" width: 162 Height: 300
(
Button pickk "top layer" -- [filter: <function>] * [tooltip: <string>] * [autodisplay: <Boolean>] *
Button btn1 "repair normal" width: 107 Height: 30
 
On pickk pressed do
(
If classof level1 = edit_poly or classof level1 = editable_poly then
(
Selfaces = polyop. getfaceselection $
If selfaces. numberset = 1 then
(
Pickk. Text = (selfaces as array) [1] as string
)

)


) --- End * n. * end *, * Target * Vt. * end * pick * Vt. * pick; pick *
 
On btn1 pressed do
(
For I in selection do
(
Normal_flipvt (try (pickk. Text as integer) catch (1 ))
)

)
)
Createdialog gt_yongchao_normal

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.