亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? polyhedralboundedsolidsetoperator.java

?? 基于java的3d開發庫。對坐java3d的朋友有很大的幫助。
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
                        addsovv(e.rightHalf.startingVertex, f.lastIntersectedVertex, BvsA);                    }                    processEdge(e.rightHalf.previous().parentEdge, current, BvsA, other);                }            }        }        else {            if ( s1 == 0 ) {                doVertexOnFace(v1, f, BvsA, current, other);            }            if ( s2 == 0 ) {                doVertexOnFace(v2, f, BvsA, current, other);            }        }    }    /**    Following program [MANT1988].15.2.    */    private static void processEdge(_PolyhedralBoundedSolidEdge e,                                    PolyhedralBoundedSolid s,                                    int BvsA,                                    PolyhedralBoundedSolid other)    {        _PolyhedralBoundedSolidFace f;        int i;        for ( i = 0; i < s.polygonsList.size(); i++ ) {            f = s.polygonsList.get(i);            doSetOpGenerate(e, f, BvsA, s, other);        }    }    /**    Initial vertex intersection detector for the set operations algorithm    (big phase 0).    Following program [MANT1988].15.2.    */    private static void setOpGenerate(PolyhedralBoundedSolid inSolidA,                                      PolyhedralBoundedSolid inSolidB)    {        _PolyhedralBoundedSolidEdge e;        sonvv = new ArrayList<_PolyhedralBoundedSolidSetOperatorVertexVertex>();        sonva = new ArrayList<_PolyhedralBoundedSolidSetOperatorVertexFace>();        sonvb = new ArrayList<_PolyhedralBoundedSolidSetOperatorVertexFace>();        int i;        for ( i = 0; i < inSolidA.edgesList.size(); i++ ) {            e = inSolidA.edgesList.get(i);            processEdge(e, inSolidB, 0, inSolidA);        }        for ( i = 0; i < inSolidB.edgesList.size(); i++ ) {            e = inSolidB.edgesList.get(i);            processEdge(e, inSolidA, 1, inSolidB);        }    }    /**    Current method is the first step for the initial vertex/face classification    of sectors (vertex neighborhood) for `vtx`, as indicated on section    [MANT1988].14.5.2. and program [MANT1988].14.4., but biased towards the    set operator classifier, as proposed on section [MANT1988].15.6.1. and    problem [MANT1988].15.4.    Vitral SDK's implementation of this procedure extends the original from    [MANT1988] by adding extra information flags to sector classifications    `.isWide`, `.position` and `.situation`. Those flags are an additional    aid for debugging purposes and specifically the `situation` flag will be    later used on `splitClassify` to correct the ordering of sectors in order    to keep consistency with Vitral SDK's interpretation of coordinate system.    */    private static    ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace>    vertexFaceGetNeighborhood(        _PolyhedralBoundedSolidVertex vtx,        InfinitePlane referencePlane,        int BvsA)    {        _PolyhedralBoundedSolidHalfEdge he;        Vector3D bisect;        double d;        _PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace c;        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> neighborSectorsInfo;        neighborSectorsInfo = new ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace>();        he = vtx.emanatingHalfEdge;        do {            c = new _PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace();            c.sector = he;            d = referencePlane.pointDistance((he.next()).startingVertex.position);            c.cl = PolyhedralBoundedSolid.compareValue(d, 0.0, VSDK.EPSILON);            c.isWide = false;            c.position = new Vector3D((he.next()).startingVertex.position);            c.situation = c.UNDEFINED;            c.referencePlane = referencePlane;            neighborSectorsInfo.add(c);            if ( checkWideness(he) ) {                bisect = inside(he).add(vtx.position);                c.situation = c.CROSSING_EDGE;                c = new _PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace();                c.sector = he;                d = referencePlane.pointDistance(bisect);                c.cl = PolyhedralBoundedSolid.compareValue(d, 0.0, VSDK.EPSILON);                c.isWide = true;                c.position = new Vector3D(bisect);                c.situation = c.CROSSING_EDGE;                c.referencePlane = referencePlane;                neighborSectorsInfo.add(c);            }            he = (he.mirrorHalfEdge()).next();        } while ( he != vtx.emanatingHalfEdge );        //-----------------------------------------------------------------        // Extra pass, not from original [MANT1988] code        int i;        for ( i = 0; i < neighborSectorsInfo.size(); i++ ) {            c = neighborSectorsInfo.get(i);            if ( c.cl == c.ON && c.situation == c.UNDEFINED ) {                c.situation = c.INPLANE_EDGE;            }        }        return neighborSectorsInfo;    }    /**    Current method applies the first reclassification rule presented at    sections [MANT1988].14.5.1 and [MANT1988].14.5.2., but biased towards the    set operator classifier, as proposed on section [MANT1988].15.6.1. and    problem [MANT1988].15.4.:    For the given vertex neigborhood, classify each edge according to whether    its final vertex lies above (out), on or below (in) the `referencePlane`.    Tag the edge with the corresponding label ABOVE, ON or BELOW.    Following program [MANT1988].14.5.    */    private static void vertexFaceReclassifyOnSectorsNoPeekVersion(        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> nbr,        InfinitePlane referencePlane, int BvsA, int op)    {        _PolyhedralBoundedSolidFace f;        Vector3D c;        double d;        int i;        int nnbr = nbr.size();        _PolyhedralBoundedSolidSetOperatorSectorClassificationOnSector ni;        ni = new _PolyhedralBoundedSolidSetOperatorSectorClassificationOnSector();        //-----------------------------------------------------------------        // Backup neighborhood to prevent empty case        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> backup;        backup = new ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace>();        for ( i = 0; i < nnbr; i++ ) {            backup.add(new _PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace(nbr.get(i)));        }        //-----------------------------------------------------------------        // Only will be activated if non empty case result (force to intersect)        for ( i = 0; i < nnbr; i++ ) {            // Test coplanarity            f = nbr.get(i).sector.parentLoop.parentFace;            c = f.containingPlane.getNormal().crossProduct(referencePlane.getNormal());            d = c.dotProduct(c);            if ( PolyhedralBoundedSolid.compareValue(d, 0.0, VSDK.EPSILON) == 0 ) {                // Entering this means "faces are coplanar"                //System.out.println("**** UNTESTED CASE!");                d = f.containingPlane.getNormal().dotProduct(referencePlane.getNormal());                if ( PolyhedralBoundedSolid.compareValue(d, 0.0, VSDK.EPSILON) == 1 ) {                    // Identical                    if ( BvsA != 0 ) {                        nbr.get(i).cl = (op == UNION)?ni.IN:ni.OUT;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.IN:ni.OUT;                    }                    else {                        nbr.get(i).cl = (op == UNION)?ni.OUT:ni.IN;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.OUT:ni.IN;                    }                }                else {                    // Opposite                    if ( BvsA != 0 ) {                        nbr.get(i).cl = (op == UNION)?ni.IN:ni.OUT;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.IN:ni.OUT;                    }                    else {                        nbr.get(i).cl = (op == UNION)?ni.IN:ni.OUT;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.IN:ni.OUT;                    }                }            }        }        //-----------------------------------------------------------------        // Restore original neighborhood if result is empty case        int ins = 0;        int outs = 0;        for ( i = 0; i < nnbr; i++ ) {            if ( nbr.get(i).cl == ni.OUT ) {                outs++;            }            else {                ins++;            }        }        if ( outs == nnbr || ins == nnbr) {            //System.out.println("**** WRONG ON SECTOR RECLASSIFICATION! REVERSED!");            for ( i = 0; i < nnbr; i++ ) {                nbr.get(i).cl = backup.get(i).cl;                //nbr.get(i).reverse = true;            }        }    }    /**    Current method applies the first reclassification rule presented at    sections [MANT1988].14.5.1 and [MANT1988].14.5.2., but biased towards the    set operator classifier, as proposed on section [MANT1988].15.6.1. and    problem [MANT1988].15.4.:    For the given vertex neigborhood, classify each edge according to whether    its final vertex lies above (out), on or below (in) the `referencePlane`.    Tag the edge with the corresponding label ABOVE, ON or BELOW.    Following program [MANT1988].14.5.    -----------------------------------------------------------------    Reclassification procedure for "on"-sectors on the vertex/face clasiffier,    Original answer from [.WMANT2008].    */    private static void vertexFaceReclassifyOnSectors(        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> nbr,        InfinitePlane referencePlane, int BvsA, int op)    {        _PolyhedralBoundedSolidFace f;        Vector3D c;        double d;        int i;        int nnbr = nbr.size();        _PolyhedralBoundedSolidSetOperatorSectorClassificationOnSector ni;        ni = new _PolyhedralBoundedSolidSetOperatorSectorClassificationOnSector();        //-----------------------------------------------------------------        // Backup neighborhood to prevent empty case        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> backup;        backup = new ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace>();        for ( i = 0; i < nnbr; i++ ) {            backup.add(new _PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace(nbr.get(i)));        }        //-----------------------------------------------------------------        // Only will be activated if non empty case result (force to intersect)        for ( i = 0; i < nnbr; i++ ) {            // Test coplanarity            f = nbr.get(i).sector.mirrorHalfEdge().parentLoop.parentFace;            c = f.containingPlane.getNormal().crossProduct(referencePlane.getNormal());            d = c.dotProduct(c);            if ( PolyhedralBoundedSolid.compareValue(d, 0.0, VSDK.EPSILON) == 0 ) {                // Entering this means "faces are coplanar"                d = f.containingPlane.getNormal().dotProduct(referencePlane.getNormal());                // Test orientation                if ( PolyhedralBoundedSolid.compareValue(d, 0.0, VSDK.EPSILON) == 1 ) {                    // Identical                    if ( BvsA != 0 ) {                        nbr.get(i).cl = (op == UNION)?ni.IN:ni.OUT;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.IN:ni.OUT;                    }                    else {                        nbr.get(i).cl = (op == UNION)?ni.OUT:ni.IN;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.OUT:ni.IN;                    }                }                else {                    // Opposite                    if ( BvsA != 0 ) {                        nbr.get(i).cl = (op == UNION)?ni.IN:ni.OUT;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.IN:ni.OUT;                    }                    else {                        nbr.get(i).cl = (op == UNION)?ni.IN:ni.OUT;                        nbr.get((i+1)%nnbr).cl =                            (op == UNION)?ni.IN:ni.OUT;                    }                }            }        }        //-----------------------------------------------------------------        // Restore original neighborhood if result is empty case        int ins = 0;        int outs = 0;        for ( i = 0; i < nnbr; i++ ) {            if ( nbr.get(i).cl == ni.OUT ) {                outs++;            }            else {                ins++;            }        }        if ( outs == nnbr || ins == nnbr) {            System.out.println("**** WRONG ON SECTOR RECLASSIFICATION! REVERSED!");            for ( i = 0; i < nnbr; i++ ) {                nbr.get(i).cl = backup.get(i).cl;                //nbr.get(i).reverse = true;            }        }    }    private static void printNbr(ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> neighborSectorsInfo)    {        int i;        for ( i = 0; i < neighborSectorsInfo.size(); i++ ) {            System.out.println("    . " + neighborSectorsInfo.get(i));        }    }    private static boolean inplaneEdgesOn(        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> nbr)    {        int i;        for ( i = 0; i < nbr.size(); i++ ) {            if ( nbr.get(i).situation == nbr.get(i).INPLANE_EDGE ) return true;        }        return false;    }    private static void vertexFaceReclassifyOnEdges(        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> nbr,        int op, boolean useBorrowed)    {        if ( useBorrowed ) {            vertexFaceReclassifyOnEdgesBorrowed(nbr, op);          }          else {            vertexFaceReclassifyOnEdgesNoPeekVersion(nbr, op);        }    }    /**    Current method implements the set of changes from table [MANT1988].15.3.    for the reclassification rules.    */    private static void vertexFaceReclassifyOnEdgesNoPeekVersion(        ArrayList<_PolyhedralBoundedSolidSetOperatorSectorClassificationOnFace> nbr,        int op)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
6080国产精品一区二区| av不卡免费电影| 亚洲成av人片一区二区| 中文字幕一区二区三区不卡在线| 精品av综合导航| 日韩免费视频一区| 26uuuu精品一区二区| 久久亚洲一区二区三区四区| 欧美本精品男人aⅴ天堂| 日韩一级免费观看| 精品国产网站在线观看| 久久五月婷婷丁香社区| 国产欧美一区二区精品婷婷| 久久久精品日韩欧美| 国产日韩v精品一区二区| 中文字幕欧美日韩一区| 一区二区三区在线视频观看| 亚洲图片欧美一区| 捆绑调教一区二区三区| 狠狠狠色丁香婷婷综合激情| 粗大黑人巨茎大战欧美成人| 91视频免费播放| 欧美一区在线视频| 久久久久久久网| 最新热久久免费视频| 亚洲午夜久久久久中文字幕久| 石原莉奈一区二区三区在线观看 | 2014亚洲片线观看视频免费| 欧美电视剧免费观看| 欧美激情在线一区二区| 亚洲精品视频一区二区| 日本伊人午夜精品| 国产一区高清在线| 色综合久久88色综合天天| 8x8x8国产精品| 国产精品麻豆欧美日韩ww| 亚洲一区二区三区美女| 韩国成人在线视频| 91国模大尺度私拍在线视频| 日韩欧美高清一区| 国产精品久线在线观看| 免费成人你懂的| 91在线视频官网| 精品国产成人系列| 一区二区三区精密机械公司| 国产精品一区二区在线播放| 欧美午夜精品免费| 中文字幕乱码一区二区免费| 麻豆国产欧美一区二区三区| 一本到高清视频免费精品| 精品国产亚洲一区二区三区在线观看| 亚洲视频每日更新| 国产精品亚洲第一 | 美女视频网站黄色亚洲| va亚洲va日韩不卡在线观看| 日韩视频一区二区在线观看| 一区二区在线观看视频| 国产成人免费在线| 日韩欧美电影一二三| 亚洲不卡在线观看| 色综合久久久网| 中文字幕日韩一区| 成人精品视频.| 久久久影视传媒| 激情综合色播五月| 欧美成人高清电影在线| 丝袜美腿一区二区三区| 欧美午夜精品免费| 亚洲一区二区欧美| 在线看一区二区| 亚洲精品日产精品乱码不卡| 国产激情偷乱视频一区二区三区| 欧美电影免费观看高清完整版在线 | 亚洲黄色免费电影| 99久久久精品免费观看国产蜜| 久久日韩粉嫩一区二区三区| 精品一区二区三区香蕉蜜桃| 日韩一区二区免费高清| 日韩精品乱码免费| 9191国产精品| 蜜桃av一区二区在线观看| 欧美一区二区三区啪啪| 麻豆中文一区二区| 欧美大度的电影原声| 狠狠色丁香九九婷婷综合五月| 精品999久久久| 国产成人在线观看免费网站| 国产精品国产自产拍高清av| 91一区二区在线| 亚洲精品国产a| 欧美四级电影在线观看| 三级在线观看一区二区| 欧美大肚乱孕交hd孕妇| 国产成人啪免费观看软件| 国产精品美女一区二区在线观看| 99久久99久久综合| 亚洲成人在线网站| 精品国产第一区二区三区观看体验| 国产电影一区二区三区| 亚洲精品视频在线| 日韩美女主播在线视频一区二区三区| 久久激五月天综合精品| 国产精品网曝门| 欧美性猛交xxxx乱大交退制版| 三级欧美在线一区| 精品久久人人做人人爽| 91亚洲大成网污www| 日韩精品一级中文字幕精品视频免费观看| 91麻豆精品国产91久久久久久| 国产精品一区二区91| 亚洲欧美视频一区| 精品少妇一区二区三区视频免付费| 国产91露脸合集magnet| 一区二区三区四区在线| 久久综合给合久久狠狠狠97色69| 97久久人人超碰| 久久国产福利国产秒拍| 亚洲麻豆国产自偷在线| 欧美大片日本大片免费观看| 色综合久久综合| 精品亚洲国产成人av制服丝袜| 最近中文字幕一区二区三区| 欧美一级欧美一级在线播放| 成人高清视频在线观看| 美女视频免费一区| 亚洲午夜影视影院在线观看| 国产欧美日韩不卡免费| 欧美美女bb生活片| 成a人片国产精品| 韩国一区二区视频| 日韩中文字幕区一区有砖一区 | 亚洲午夜电影在线| 亚洲国产精品激情在线观看| 日韩欧美一二三区| 欧美日韩视频在线第一区| caoporm超碰国产精品| 国产一区福利在线| 青青草97国产精品免费观看无弹窗版| 亚洲欧美日韩国产综合在线| 久久精品夜色噜噜亚洲aⅴ| 欧美一区二区播放| 6080yy午夜一二三区久久| 日本乱码高清不卡字幕| 91免费观看视频| av电影在线观看一区| 国产不卡视频在线播放| 国产精品一区二区男女羞羞无遮挡| 免费一级欧美片在线观看| 婷婷久久综合九色综合伊人色| 一区二区不卡在线播放 | 日韩欧美国产一区二区三区| 欧美精品 国产精品| 欧美色精品在线视频| 欧美吻胸吃奶大尺度电影 | 欧美一区二区三区精品| 欧美久久久久免费| 欧美日韩成人一区| 欧美一级电影网站| 欧美成人伊人久久综合网| 日韩视频免费直播| 日韩一级片在线观看| 欧美xfplay| 久久久久国产精品麻豆| 久久精品视频在线免费观看 | 99精品黄色片免费大全| 成人综合在线观看| 成人精品视频网站| 在线观看网站黄不卡| 欧美亚洲国产bt| 日韩三级.com| 久久久午夜精品| 国产精品麻豆欧美日韩ww| 亚洲人午夜精品天堂一二香蕉| 一区二区在线观看免费视频播放| 亚洲一区在线看| 美女视频黄 久久| 国产成人免费视频网站高清观看视频 | 欧美高清性hdvideosex| 日韩精品一区在线观看| 欧美国产日韩在线观看| 亚洲欧美国产三级| 污片在线观看一区二区| 国产精品99久久久久久有的能看 | 欧洲一区二区av| 欧美一区二区女人| 国产精品麻豆视频| 日韩精品亚洲一区二区三区免费| 国产在线精品免费av| 91无套直看片红桃| 欧美一二三区在线观看| 国产精品网曝门| 日本中文在线一区| 北条麻妃一区二区三区| 欧美久久久影院| 成人免费在线播放视频| 美腿丝袜亚洲一区| 欧美午夜不卡在线观看免费| 久久精品在这里| 日韩高清不卡一区二区三区| 丁香桃色午夜亚洲一区二区三区|