Dear OpenFlipper,We really appreciate your feedback in such a quick time!!Now, by following your instruction, both the compiling and running are fine without error pop-up.Here is our code:_mesh->set_color(_mesh->vertex_handle(intLoopBeginningVertexHandle), TriMesh::Color(0.7,0.286,0.5568,1.0));HOWEVER, we found that the vertex color of mesh in viewport did not change at all.It was still in red(selection status).In code, we would like to change the color of those vertices which formed a boundary of a region.Could you please share us with your idea?Best Regards,
Xianyong Liu
Shanghai JiaoTong UniversityAddress: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min Hang,Shanghai,200240,China
From: openflipper-requestDate: 2012-07-21 18:00To: openflipperSubject: Openflipper Digest, Vol 29, Issue 3Send Openflipper mailing list submissions toTo subscribe or unsubscribe via the World Wide Web, visitor, via email, send a message with subject or body 'help' toYou can reach the person managing the list atWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of Openflipper digest..."Today's Topics:1. How can we set a color for a vertex in code (xyliu80@gmail.com)2. Re: How can we set a color for a vertex in code (Jan Möbius)----------------------------------------------------------------------Message: 1Date: Sat, 21 Jul 2012 00:02:15 +0800To: openflipper <openflipper@lists.rwth-aachen.de>Subject: [Openflipper] How can we set a color for a vertex in codeMessage-ID: <201207210002102348624@gmail.com>Content-Type: text/plain; charset="utf-8"Dear Openflipper,Currently, we encountered error while calling set_color command.Here is our code line:for(std::vector<int>::iterator iterAvi = verticeInSelection_.begin();iterAvi != verticeInSelection_.end();++iterAvi){for(TriMesh::VertexVertexIter vv_it = _mesh->vv_iter(_mesh->vertex_handle(*iterAvi)); vv_it; ++vv_it){if(!_mesh->status(vv_it).selected()){//_mesh->set_color(_mesh->vertex_handle(*iterAvi), TriMesh::Color(250, 0, 160));vecBoundary_.push_back(*iterAvi);break;}}}Could you kindly give us your suggestion?Best Regards,Xianyong LiuShanghai JiaoTong UniversityOffice: +86 021 34204586Mobile: +86 18817559980E-mail: xyliu80@gmail.comAddress: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min Hang,Shanghai,200240,ChinaFrom: openflipper-requestDate: 2012-07-16 18:00To: openflipperSubject: Openflipper Digest, Vol 29, Issue 2Send Openflipper mailing list submissions toTo subscribe or unsubscribe via the World Wide Web, visitor, via email, send a message with subject or body 'help' toYou can reach the person managing the list atWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of Openflipper digest..."Today's Topics:1. How to change the "Switch viewer layout" in the toolbar (HOTMAIL)2. Re: How to change the "Switch viewer layout" in the toolbar(Jan Möbius)----------------------------------------------------------------------Message: 1Date: Mon, 16 Jul 2012 08:48:43 +0800From: HOTMAIL <chinaairforce1@hotmail.com>To: openflipper <openflipper@lists.rwth-aachen.de>Subject: [Openflipper] How to change the "Switch viewer layout" in thetoolbarMessage-ID: <BLU0-SMTP1854A2D1D5E72F8CC06434294D40@phx.gbl>Content-Type: text/plain; charset="gb2312"Dear Openflipper,In code, we are able to call the following instruction to switch the view mode from single to double.RPC::callFunction("core", "MultiViewMode", 1);However, I found that the combo of "Switch viewer layout" in the toolbar did not change.It was still in the first item.How could I change it in code?Best Regards,Xianyong Liu.-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 2Date: Mon, 16 Jul 2012 09:03:06 +0200From: Jan Möbius <moebius@cs.rwth-aachen.de>Subject: Re: [Openflipper] How to change the "Switch viewer layout" inthe toolbarMessage-ID: <5003BCAA.2060002@cs.rwth-aachen.de>Content-Type: text/plain; charset=ISO-8859-1Hi,this was a bug not a feature. The fix is now in the svn with revision15019 and the box is correctly updated again, when the mode is switchedvia RPC.Best,Jan MöbiusOn 16.07.2012 02:48, HOTMAIL wrote:> Dear Openflipper,> In code, we are able to call the following instruction to switch the> view mode from single to double.>> RPC::callFunction("core", "MultiViewMode", 1);>> However, I found that the combo of "Switch viewer layout" in the toolbar> did not change.> It was still in the first item.>> How could I change it in code?>> Best Regards,> Xianyong Liu.>>> _______________________________________________> Openflipper mailing list--Dipl.Inform. Jan MöbiusDepartment of Computer Science VIIIAachen University of Technology (RWTH)Ahornstrasse 55, 52074 Aachen, GermanyPhone ++49 (0)241 80-21817Fax ++49 (0)241 80-22899------------------------------_______________________________________________Openflipper mailing listEnd of Openflipper Digest, Vol 29, Issue 2******************************************-------------- next part --------------An HTML attachment was scrubbed...------------------------------Message: 2Date: Fri, 20 Jul 2012 18:15:00 +0200From: Jan Möbius <moebius@cs.rwth-aachen.de>Subject: Re: [Openflipper] How can we set a color for a vertex in codeMessage-ID: <50098404.8030807@cs.rwth-aachen.de>Content-Type: text/plain; charset=ISO-8859-1Hi,OpenFlipper uses Vec4f as it's color format. So Your colors should bedefined as RGBA (range 0 ... 1 per component).TriMesh::Color(1.0, 0.0, 0.0 ,1.0));If that does not work, please send me the error produced by the compiler.Best,Jan MöbiusOn 20.07.2012 18:02, xyliu80@gmail.com wrote:> Dear Openflipper,>> Currently, we encountered error while calling set_color command.>> Here is our code line:>> for(std::vector<int>::iterator iterAvi = verticeInSelection_.begin();> iterAvi != verticeInSelection_.end();> ++iterAvi)> {> for(TriMesh::VertexVertexIter vv_it = _mesh->vv_iter(_mesh->vertex_handle(*iterAvi)); vv_it; ++vv_it)> {> if(!_mesh->status(vv_it).selected())> {> //_mesh->set_color(_mesh->vertex_handle(*iterAvi), TriMesh::Color(250, 0, 160));> vecBoundary_.push_back(*iterAvi);> break;> }> }> }>> Could you kindly give us your suggestion?>> Best Regards,> ------------------------------------------------------------------------> *Xianyong Liu> Shanghai JiaoTong University*> *Office: +86 021 34204586> Mobile: +86 18817559980> E-mail: **xyliu80@gmail.com* <mailto:xyliu80@gmail.com>>> *Address: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min> Hang,Shanghai,200240,China*>>>> *From:* openflipper-request> *Date:* 2012-07-16 18:00> *To:* openflipper <mailto:openflipper@lists.rwth-aachen.de>> *Subject:* Openflipper Digest, Vol 29, Issue 2> Send Openflipper mailing list submissions to>> To subscribe or unsubscribe via the World Wide Web, visit> or, via email, send a message with subject or body 'help' to>> You can reach the person managing the list at>> When replying, please edit your Subject line so it is more specific> than "Re: Contents of Openflipper digest...">>> Today's Topics:>> 1. How to change the "Switch viewer layout" in the toolbar (HOTMAIL)> 2. Re: How to change the "Switch viewer layout" in the toolbar> (Jan Möbius)>>> ---------------------------------------------------------------------->> Message: 1> Date: Mon, 16 Jul 2012 08:48:43 +0800> From: HOTMAIL <chinaairforce1@hotmail.com>> To: openflipper <openflipper@lists.rwth-aachen.de>> Subject: [Openflipper] How to change the "Switch viewer layout" in the> toolbar> Message-ID: <BLU0-SMTP1854A2D1D5E72F8CC06434294D40@phx.gbl>> Content-Type: text/plain; charset="gb2312">> Dear Openflipper,> In code, we are able to call the following instruction to switch the view mode from single to double.>> RPC::callFunction("core", "MultiViewMode", 1);>> However, I found that the combo of "Switch viewer layout" in the toolbar did not change.> It was still in the first item.>> How could I change it in code?>> Best Regards,> Xianyong Liu.> -------------- next part --------------> An HTML attachment was scrubbed...>> ------------------------------>> Message: 2> Date: Mon, 16 Jul 2012 09:03:06 +0200> From: Jan Möbius <moebius@cs.rwth-aachen.de>> Subject: Re: [Openflipper] How to change the "Switch viewer layout" in> the toolbar> Message-ID: <5003BCAA.2060002@cs.rwth-aachen.de>> Content-Type: text/plain; charset=ISO-8859-1>> Hi,>> this was a bug not a feature. The fix is now in the svn with revision> 15019 and the box is correctly updated again, when the mode is switched> via RPC.>> Best,> Jan Möbius>> On 16.07.2012 02:48, HOTMAIL wrote:>> Dear Openflipper,>> In code, we are able to call the following instruction to switch the>> view mode from single to double.>>>> RPC::callFunction("core", "MultiViewMode", 1);>>>> However, I found that the combo of "Switch viewer layout" in the toolbar>> did not change.>> It was still in the first item.>>>> How could I change it in code?>>>> Best Regards,>> Xianyong Liu.>>>>>> _______________________________________________>> Openflipper mailing list>>> --> Dipl.Inform. Jan Möbius> Department of Computer Science VIII> Aachen University of Technology (RWTH)> Ahornstrasse 55, 52074 Aachen, Germany>> Phone ++49 (0)241 80-21817> Fax ++49 (0)241 80-22899>>> ------------------------------>> _______________________________________________> Openflipper mailing list>>> End of Openflipper Digest, Vol 29, Issue 2> ******************************************>>> _______________________________________________> Openflipper mailing list--Dipl.Inform. Jan MöbiusDepartment of Computer Science VIIIAachen University of Technology (RWTH)Ahornstrasse 55, 52074 Aachen, GermanyPhone ++49 (0)241 80-21817Fax ++49 (0)241 80-22899------------------------------_______________________________________________Openflipper mailing listEnd of Openflipper Digest, Vol 29, Issue 3******************************************
_______________________________________________ Openflipper mailing list Openflipper@lists.rwth-aachen.de http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
-- Dipl.Inform. Jan Möbius Department of Computer Science VIII Aachen University of Technology (RWTH) Ahornstrasse 55, 52074 Aachen, Germany Phone ++49 (0)241 80-21817 Fax ++49 (0)241 80-22899 mailto:moebius@cs.rwth-aachen.de http://www.rwth-graphics.de