Hi again,
I have a question about UpdateTypes and a proper way to respond to updatedObject in slotObjectUpdated. In my plugin I would like to respond to changes in an object coming from the Move plugin, from the MoveSelection in particular. The user selects vertices, transforms them using a manipulator and the plugin recomputes the position of the remaining vertices. At present I have in slotObjectUpdated something like this:
if (!type.contains(UPDATE_GEOMETRY) || PluginFunctions::pickMode() != "MoveSelection") {
return; // we are not interested and don't want to respond
}
However, any update to my object from another plugin while I am in the MoveSelection pick mode will go through. What would be the right way to go about this?
A related question: why for example clearModelingArea from Plugin-SelectionMeshObject emits UPDATE_ALL if it does not modify geometry or topology of the object?
Another related question: if I add a property to an object, I would like to notify other plugins about it (e.g., PropertyVis). How would I do it?
Thanks a lot for your help,
Vladimir
Dear Möbius,
I would like to ask about giving colors to the edges and visualizing them
on the Openflipper visualization framework.
Here is my code, but I cannot see the colored edges;
m_mesh->request_edge_colors();
m_mesh->set_color(m_mesh->edge_handle(0), PolyMesh::Color(0, 255, 0));
PluginFunctions::setDrawMode(ACG::SceneGraph::DrawModes::EDGES_COLORED);
emit updatedObject(m_targetObject->id(), UPDATE_COLOR);
Thank you.
Erkan Gunpinar
The University of Tokyo
Hi!
I was trying to export a TriMesh to the PLY file format with vertex colors.
The mesh looks as expected in OpenFlipper. But the exported mesh was all
black in MeshLab. When looking at the PLY file, the components of the
colors were all either 0 or 1.
I believe there is a bug in the PLY exporter. TriTraits::Color is
defined as Vec4f. FilePLYT.cc exports this as
ofs << " " << OpenMesh::color_cast<OpenMesh::Vec3i>(c);
That means, that in fact OpenMesh::color_coder<Vec3i, Vec4f> is used for
the conversion. Since there is no such specialization of color_coder,
the default template will be used, which just converts to int. Thus, the
resulting colors will all be not correct.
Shouldn't it be this?
ofs << " " << OpenMesh::color_cast<OpenMesh::Vec3uc>(c);
Bye,
Bengt
Dear openflipper,
Last time, we raised Vol 29, Issue 5.
According to your suggestion,
we chagned code to :
*int intObjectID = PluginFunctions::getObjectId(strPrameterizationObjectName);
PluginFunctions::setDrawMode(ACG::SceneGraph::DrawModes::POINTS_SHADED, 1);
emit updatedObject(intObjectID, UPDATE_COLOR );*/
Unfortunately, I found that it did not work. The color did not show up.
Besides, we have a new problem with the code below.
Compiling and running the following are fine. The problem is line 1 works
fine, but line 2 give no message in the status bar.
Line1:
QMessageBox::information(NULL, "Scene Position", string,
QMessageBox::Yes, QMessageBox::Yes);
Line2: emit showStatusMessage(string, 100);
Thank for your help!
THANKS VERY MUCH FOR YOUR GREAT WORK!!
Regards,
------------------------------
*Xianyong Liu
Shanghai JiaoTong University*
*Office: +86 021 34204586
Mobile: +86 18817559980
E-mail: **xyliu80(a)gmail.com* <xyliu80(a)gmail.com>
*Address: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min
Hang,Shanghai,200240,China*
Hi,
OpenFlipper 1.3 has been released. This release adds some new
functionality.
The poly line has been added as a new data type. It can be moved across
a surface, and has build in algorithms for smoothing, decimation and
subdivision.
The ruler plugin is now available and can be used to measure the
euclidean distance between objects in the 3D scene.
The subdivider has been extended by a Catmull-Clark algorithm for
QuadMeshes and various other plugins got improvements or bugfixes.
Furthermore there were various updates for gcc-4.7 compatibility and
documentation improvements.
For a full list of changes please look into the changelog.
http://openflipper.org/Documentation/OpenFlipper-1.3/changelog.html
Best,
Jan Möbius
--
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
Hi,
I've tried using:
emit updatedObject(-1, UPDATE_ALL)
after performing an operation that updates a number of objects within in
the scene.
The documentation implies that this should call updatedObject for all
objects, it doesn't seem to work. I'm currently using OpenFlipper 1.2, but
I don't see a mention of this in the changelog for 1.3.
Regards,
David Lane
Hi,
i want to write a shader, that sums up all values of a vertexproperty
for all visible vertices and one with which i compute the color for
each vertex using a vertexproperty. Are vertexproperties being pushed
automatically into the pipeline or do i have to assign them manually?
If necessary what needs to be done so that a shader can use a property
and how can i access that property in my vertex shader. I already
thought about a workaround, storing the property value for a vertex in
a texture but is there a better way?
Best Regards
Sebastian von Hippel
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 University
Office: +86 021 34204586
Mobile: +86 18817559980
E-mail: xyliu80(a)gmail.com
Address: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min Hang,Shanghai,200240,China
From: openflipper-request
Date: 2012-07-21 18:00
To: openflipper
Subject: Openflipper Digest, Vol 29, Issue 3
Send Openflipper mailing list submissions to
openflipper(a)lists.rwth-aachen.de
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
or, via email, send a message with subject or body 'help' to
openflipper-request(a)lists.rwth-aachen.de
You can reach the person managing the list at
openflipper-owner(a)lists.rwth-aachen.de
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Openflipper digest..."
Today's Topics:
1. How can we set a color for a vertex in code (xyliu80(a)gmail.com)
2. Re: How can we set a color for a vertex in code (Jan Möbius)
----------------------------------------------------------------------
Message: 1
Date: Sat, 21 Jul 2012 00:02:15 +0800
From: "xyliu80(a)gmail.com" <xyliu80(a)gmail.com>
To: openflipper <openflipper(a)lists.rwth-aachen.de>
Subject: [Openflipper] How can we set a color for a vertex in code
Message-ID: <201207210002102348624(a)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 Liu
Shanghai JiaoTong University
Office: +86 021 34204586
Mobile: +86 18817559980
E-mail: xyliu80(a)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
Subject: Openflipper Digest, Vol 29, Issue 2
Send Openflipper mailing list submissions to
openflipper(a)lists.rwth-aachen.de
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
or, via email, send a message with subject or body 'help' to
openflipper-request(a)lists.rwth-aachen.de
You can reach the person managing the list at
openflipper-owner(a)lists.rwth-aachen.de
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(a)hotmail.com>
To: openflipper <openflipper(a)lists.rwth-aachen.de>
Subject: [Openflipper] How to change the "Switch viewer layout" in the
toolbar
Message-ID: <BLU0-SMTP1854A2D1D5E72F8CC06434294D40(a)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...
URL: <http://mailman.rwth-aachen.de/pipermail/openflipper/attachments/20120716/89…>
------------------------------
Message: 2
Date: Mon, 16 Jul 2012 09:03:06 +0200
From: Jan Möbius <moebius(a)cs.rwth-aachen.de>
To: openflipper(a)lists.rwth-aachen.de
Subject: Re: [Openflipper] How to change the "Switch viewer layout" in
the toolbar
Message-ID: <5003BCAA.2060002(a)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
> Openflipper(a)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
------------------------------
_______________________________________________
Openflipper mailing list
Openflipper(a)lists.rwth-aachen.de
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
End of Openflipper Digest, Vol 29, Issue 2
******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.rwth-aachen.de/pipermail/openflipper/attachments/20120721/69…>
------------------------------
Message: 2
Date: Fri, 20 Jul 2012 18:15:00 +0200
From: Jan Möbius <moebius(a)cs.rwth-aachen.de>
To: openflipper(a)lists.rwth-aachen.de
Subject: Re: [Openflipper] How can we set a color for a vertex in code
Message-ID: <50098404.8030807(a)cs.rwth-aachen.de>
Content-Type: text/plain; charset=ISO-8859-1
Hi,
OpenFlipper uses Vec4f as it's color format. So Your colors should be
defined 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öbius
On 20.07.2012 18:02, xyliu80(a)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(a)gmail.com* <mailto:xyliu80@gmail.com>
>
> *Address: 504 Room, SEIEE buiding 3#, 800 Dongchuan Rd,Min
> Hang,Shanghai,200240,China*
>
>
>
> *From:* openflipper-request
> <mailto:openflipper-request@lists.rwth-aachen.de>
> *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
> openflipper(a)lists.rwth-aachen.de
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
> or, via email, send a message with subject or body 'help' to
> openflipper-request(a)lists.rwth-aachen.de
>
> You can reach the person managing the list at
> openflipper-owner(a)lists.rwth-aachen.de
>
> 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(a)hotmail.com>
> To: openflipper <openflipper(a)lists.rwth-aachen.de>
> Subject: [Openflipper] How to change the "Switch viewer layout" in the
> toolbar
> Message-ID: <BLU0-SMTP1854A2D1D5E72F8CC06434294D40(a)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...
> URL: <http://mailman.rwth-aachen.de/pipermail/openflipper/attachments/20120716/89…>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 16 Jul 2012 09:03:06 +0200
> From: Jan Möbius <moebius(a)cs.rwth-aachen.de>
> To: openflipper(a)lists.rwth-aachen.de
> Subject: Re: [Openflipper] How to change the "Switch viewer layout" in
> the toolbar
> Message-ID: <5003BCAA.2060002(a)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
>> Openflipper(a)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
>
>
> ------------------------------
>
> _______________________________________________
> Openflipper mailing list
> Openflipper(a)lists.rwth-aachen.de
> http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
>
>
> End of Openflipper Digest, Vol 29, Issue 2
> ******************************************
>
>
> _______________________________________________
> Openflipper mailing list
> Openflipper(a)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
------------------------------
_______________________________________________
Openflipper mailing list
Openflipper(a)lists.rwth-aachen.de
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
End of Openflipper Digest, Vol 29, Issue 3
******************************************
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(a)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
Subject: Openflipper Digest, Vol 29, Issue 2
Send Openflipper mailing list submissions to
openflipper(a)lists.rwth-aachen.de
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
or, via email, send a message with subject or body 'help' to
openflipper-request(a)lists.rwth-aachen.de
You can reach the person managing the list at
openflipper-owner(a)lists.rwth-aachen.de
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(a)hotmail.com>
To: openflipper <openflipper(a)lists.rwth-aachen.de>
Subject: [Openflipper] How to change the "Switch viewer layout" in the
toolbar
Message-ID: <BLU0-SMTP1854A2D1D5E72F8CC06434294D40(a)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...
URL: <http://mailman.rwth-aachen.de/pipermail/openflipper/attachments/20120716/89…>
------------------------------
Message: 2
Date: Mon, 16 Jul 2012 09:03:06 +0200
From: Jan Möbius <moebius(a)cs.rwth-aachen.de>
To: openflipper(a)lists.rwth-aachen.de
Subject: Re: [Openflipper] How to change the "Switch viewer layout" in
the toolbar
Message-ID: <5003BCAA.2060002(a)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
> Openflipper(a)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
------------------------------
_______________________________________________
Openflipper mailing list
Openflipper(a)lists.rwth-aachen.de
http://mailman.rwth-aachen.de/mailman/listinfo/openflipper
End of Openflipper Digest, Vol 29, Issue 2
******************************************
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.