istream& BipartiteGraph<VT>::getVertexes(istream& in)
{
    Link<LiBEVector<VT> > apair;
    in >> apair;
    addVertexes(apair);
    return in;
}
Beispiel #2
0
void Border::set(vector<ofPoint> &pts, float spacing){
	
	if(spacing!=NULL){
		
		ofPolyline temp;
		temp.addVertexes(pts);
		temp = ofGetResampledSpacing(temp, spacing);
		addVertexes(temp.getVertices());
	}
	else {
		addVertexes(pts);
	}
	
	color.set(ofRandom(255), ofRandom(255), ofRandom(255));
	
	computeNormals();
}
//----------------------------------------------------------
ofPolyline::ofPolyline(const vector<ofPoint>& verts){
	clear();
	addVertexes(verts);
}
global_vertex_id MultipleNetwork::addVertex() {
	addVertexes(1);
	return getNumVertexes()-1;
}