dedge.cc

来自「[Game.Programming].Academic - Graphics G」· CC 代码 · 共 28 行

CC
28 行
字号
// -*- C++ -*-// dedge.cc by George Vanecek Jr. June 1994//#include <stdlib.h>#include <assert.h>#include "dedge.h"DEdge::DEdge( const Point& srcP, DEdge* const last ): sP(srcP), nxt(NULL), sPW(NOWHERE){  last->nxt = this;  prv       = last;}void DEdge::closeCycle( DEdge* const first, DEdge* const last ){  first->prv = last;  last->nxt  = first;}void DEdge::split( const Point& p ){  DEdge* const n = next();  DEdge* const d = new DEdge( p, this );  closeCycle( n, d );}

⌨️ 快捷键说明

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