⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _polyhedralboundedsolidvertex.java

📁 基于java的3d开发库。对坐java3d的朋友有很大的帮助。
💻 JAVA
字号:
//===========================================================================//=-------------------------------------------------------------------------=//= Module history:                                                         =//= - November 18 2006 - Oscar Chavarro: Original base version              =//= - January 3 2007 - Oscar Chavarro: First phase implementation           =//=-------------------------------------------------------------------------=//= References:                                                             =//= [MANT1988] Mantyla Martti. "An Introduction To Solid Modeling",         =//=     Computer Science Press, 1988.                                       =//===========================================================================package vsdk.toolkit.environment.geometry.polyhedralBoundedSolidNodes;import vsdk.toolkit.common.FundamentalEntity;import vsdk.toolkit.common.Vector3D;import vsdk.toolkit.common.ColorRgb;import vsdk.toolkit.environment.geometry.PolyhedralBoundedSolid;/**As noted in [MANT1988].10.2.2, a `_PolyhedralBoundedSolidVertex` containsa vertex position for the geometric information of the boundary model,and a reference to one of the halfedges emanating from it.*/public class _PolyhedralBoundedSolidVertex extends FundamentalEntity {    /// Check the general attribute description in superclass Entity.    public static final long serialVersionUID = 20061118L;    /// Defined as presented in [MANT1988].10.2.1    public int id;    /// Defined as presented in [MANT1988].10.2.1    public Vector3D position;    /// Defined as presented in [MANT1988].10.2.2    public _PolyhedralBoundedSolidHalfEdge emanatingHalfEdge;    public ColorRgb debugColor;    //=================================================================    public _PolyhedralBoundedSolidVertex(PolyhedralBoundedSolid parentSolid,                                         Vector3D position, int id)    {        this.id = id;        emanatingHalfEdge = null;        this.position = new Vector3D(position);        parentSolid.verticesList.add(this);        debugColor = new ColorRgb(1, 0, 0);    }    public String toString()    {        String msg;        msg = "vertex id " + id + ". Position " + position + ". ";        if ( emanatingHalfEdge == null ) {            msg = msg + "No associated halfedge.";        }        else {            msg = msg + "H.E. " + emanatingHalfEdge.id;        }        return msg;    }}//===========================================================================//= EOF                                                                     =//===========================================================================

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -